* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
	--primary-color: #2563eb;
	--secondary-color: #1e40af;
	--background-dark: #1f2937;
	--text-light: #f3f4f6;
	--text-gray: #9ca3af;
	--danger-color: #dc2626;
	--success-color: #059669;
	--border-color: #374151;
}

.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
	background: var(--background-dark);
	color: var(--text-light);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.u-name {
	font-size: 1.25rem;
	font-weight: 600;
	padding-left: 1rem;
}

.u-name b {
	color: var(--primary-color);
}

.header i {
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--text-light);
	transition: color 0.3s ease;
}

.header .notification {
	position: relative;
	cursor: pointer;
}

.header .notification span {
	position: absolute;
	top: -5px;
	right: -5px;
	background: var(--danger-color);
	color: white;
	font-size: 0.75rem;
	padding: 0.25rem 0.5rem;
	border-radius: 9999px;
	min-width: 20px;
	text-align: center;
}

.header .notification:hover i {
	color: var(--primary-color);
}

.notification-bar {
	display: none;
	width: 90%;
	max-width: 320px;
	position: absolute;
	right: 0;
	top: 100%;
	background: white;
	padding: 1rem;
	border-radius: 0.5rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	z-index: 1000;
	max-height: 400px;
	overflow-y: auto;
}

.notification-bar.open-notification {
	display: block;
}

.notification-bar ul li {
	list-style: none;
	padding: 0.75rem;
	border-bottom: 1px solid #e5e7eb;
}

.notification-bar ul li:last-child {
	border-bottom: none;
}

.notification-bar ul li a {
	text-decoration: none;
	color: var(--background-dark);
	display: block;
	transition: color 0.3s ease;
	font-size: 0.9rem;
}

.notification-bar ul li a:hover {
	color: var(--primary-color);
}

.notification-bar ul li a.unread {
	background-color: #f3f4f6;
	border-radius: 4px;
}

.notification-bar ul li a.read {
	opacity: 0.8;
}

.notification-bar ul li a .type {
	color: var(--text-gray);
	font-size: 0.8rem;
	margin-right: 0.5rem;
}

.notification-bar ul li a mark {
	background: var(--primary-color);
	color: white;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	font-size: 0.8rem;
	margin-right: 0.5rem;
}

.notification-bar ul li a small {
	color: var(--text-gray);
	font-size: 0.8rem;
	display: block;
	margin-top: 0.25rem;
}

.user-p {
	text-align: center;
	padding: 1.5rem 1rem;
}

.user-p img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--primary-color);
	transition: transform 0.3s ease;
}

.user-p img:hover {
	transform: scale(1.05);
}

.user-p h4 {
	color: var(--text-gray);
	padding: 0.5rem 0;
	font-size: 1rem;
}

.side-bar {
	width: 250px;
	background: var(--background-dark);
	min-height: 100vh;
	transition: width 0.3s ease;
	box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.body {
	display: flex;
}

.side-bar ul {
	margin-top: 1rem;
	list-style: none;
}

.side-bar ul li {
	font-size: 1rem;
	padding: 0.75rem 1.25rem;
	transition: all 0.3s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.side-bar ul li:hover {
	background: var(--primary-color);
}

.side-bar ul li a {
	text-decoration: none;
	color: var(--text-light);
	cursor: pointer;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
}

.side-bar .active a {
	color: var(--primary-color) !important;
}

.side-bar .active a i {
	color: var(--primary-color) !important;
}

.side-bar ul li a i {
	display: inline-block;
	padding-right: 0.75rem;
	font-size: 1.25rem;
	transition: color 0.3s ease;
}

#navbtn {
	display: inline-block;
	margin-left: 70px;
	font-size: 20px;
	transition: 500ms color;
}

#checkbox {
	display: none;
}

#checkbox:checked ~ .body .side-bar {
	width: 60px;
}

#checkbox:checked ~ .body .side-bar .user-p{
	visibility: hidden;
}

#checkbox:checked ~ .body .side-bar a span{
	display: none;
}

.login-body {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

.login-body form {
	max-width:420px;
	width: 90%;
}

.section-1 {
	padding: 2rem;
	background: white;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-1 .title {
	margin-bottom: 10px;
}

.section-1 .title a,
.section-1 .title-2 .btn {
	text-decoration: none;
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border: none;
	background: var(--success-color);
	color: white;
	font-size: 1rem;
	font-weight: 500;
	border-radius: 0.5rem;
	cursor: pointer;
	outline: none;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-1 .title a:hover,
.section-1 .title-2 .btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	opacity: 0.9;
}

.section-1 .title-2 {
	margin-bottom: 10px;
}

.section-1 .title-2 .btn:hover{
	opacity: .6;
}

.section-1 .title-2 a{
	display: inline-block;
	margin-left: 10px;
}

.section-1 {
	width: 100%;
	background: #ffe;
}

.section-1 .title a:hover{
	opacity: .6;
}

.main-table, .main-table tr, .main-table th, .main-table td {
	border: 1px solid #aaa;
	border-collapse: collapse;
	padding: 7px;
}

.main-table {
	width: 100%;
	margin-top: 2rem;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.main-table th,
.main-table td {
	padding: 1rem;
	border: 1px solid #e5e7eb;
}

.main-table th {
	background: var(--background-dark);
	color: var(--text-light);
	font-weight: 600;
	text-align: left;
}

.main-table tr:nth-child(even) {
	background: #f9fafb;
}

.main-table tr:hover {
	background: #f3f4f6;
}

.delete-btn,
.edit-btn {
	text-decoration: none;
	display: inline-block;
	padding: 0.5rem 1rem;
	border: none;
	color: white;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 0.375rem;
	cursor: pointer;
	outline: none;
	transition: all 0.3s ease;
}

.delete-btn {
	background: var(--danger-color);
}

.edit-btn {
	background: var(--primary-color);
}

.delete-btn:hover,
.edit-btn:hover {
	transform: translateY(-1px);
	opacity: 0.9;
}

.form-1 {
	max-width: 500px;
	margin: 0 auto;
}

.input-holder {
	margin-bottom: 1.5rem;
}

.input-holder label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--background-dark);
	font-weight: 500;
}

.input-1 {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #e5e7eb;
	border-radius: 0.375rem;
	font-size: 1rem;
	transition: all 0.3s ease;
}

.input-1:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.danger {
	color: var(--danger-color);
	font-size: 0.875rem;
	margin-top: 0.25rem;
}

.success {
	color: var(--success-color);
	font-size: 0.875rem;
	margin-top: 0.25rem;
}

.dashboard {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	padding: 2rem;
}

.dashboard-item {
	background: white;
	padding: 1.5rem;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.dashboard-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-item i {
	font-size: 2rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.dashboard-item span {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--background-dark);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem;
    }

    .u-name {
        font-size: 1.1rem;
    }

    .body {
        margin-left: 0;
        padding-bottom: 60px; /* Add padding to prevent content from being hidden behind notifications */
    }

    .section-1 {
        padding: 1rem;
        margin: 0;
        width: 100%;
        overflow-x: hidden;
    }

    .side-bar {
        position: fixed;
        left: -250px;
        z-index: 1000;
        transition: left 0.3s ease;
        height: 100vh;
        overflow-y: auto;
    }

    #checkbox:checked ~ .body .side-bar {
        left: 0;
    }

    .main-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        margin: 1rem 0;
    }

    .dashboard {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .dashboard-item {
        padding: 1rem;
    }

    .dashboard-item i {
        font-size: 1.5rem;
    }

    .dashboard-item span {
        font-size: 1rem;
    }

    .form-1 {
        padding: 1rem;
    }

    .input-holder {
        margin-bottom: 1rem;
    }

    .action-btn {
        padding: 0.5rem;
        margin: 0.25rem;
    }

    .delete-btn,
    .edit-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .u-name {
        padding-left: 0;
    }

    #navbtn {
        margin-left: 0;
    }

    .notification-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .dashboard-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .main-table th,
    .main-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .action-btn {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}