:root {
    --primary-color: #1a382c;
    --primary-light: #2d5a48;
    --primary-dark: #0f241c;
    --sidebar-width: 250px;
    --topbar-height: 70px;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
}

/* Sidebar */
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--primary-color);
    color: var(--text-light);
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.3s;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    max-width: 80%;
    height: auto;
    max-height: 60px;
    display: block;
    margin: 0 auto 10px;
}

.sidebar-hotel-name {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
}

.sidebar .nav {
    padding: 20px 0;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    text-decoration: none;
}

.sidebar .nav-link i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-light);
    border-right: 4px solid var(--primary-light);
}

/* Main Content */
.main-content {
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    transition: all 0.3s;
}

/* Top Navbar */
.top-navbar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 30px;
    z-index: 999;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    padding: 8px 15px;
    outline: none;
    width: 250px;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 9px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-bell {
    position: relative;
    cursor: pointer;
}

.notification-bell i {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.notification-bell .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ddd;
}

/* Page Content */
.page-content {
    padding: 30px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.page-header p {
    color: #666;
    font-size: 0.9rem;
}

/* Stats Cards */
.stats-cards {
    margin-bottom: 20px;
}

.stat-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .card-body {
    display: flex;
    align-items: center;
    padding: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(26, 56, 44, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-info h3 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
}

.stat-info p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* Room Status */
.room-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.room-status-item {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: white;
    font-weight: 500;
}

.room-status-item span {
    display: block;
    font-size: 1.5rem;
    margin-top: 5px;
}

.room-status-item.available { background-color: #02c58d; }
.room-status-item.occupied { background-color: #30419b; }
.room-status-item.maintenance { background-color: #fcbe2d; color: #333; }
.room-status-item.reserved { background-color: #59c6fb; }

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
}

.card-header h5 {
    margin: 0;
    color: var(--primary-color);
}

/* Tables */
.table {
    margin-bottom: 0;
    width: 100%;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 15px;
    font-weight: 500;
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.table tbody tr:hover {
    background-color: rgba(26, 56, 44, 0.05);
}

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success { background-color: #02c58d; color: white; }
.badge-warning { background-color: #fcbe2d; color: #333; }
.badge-danger { background-color: #fc5454; color: white; }
.badge-info { background-color: #59c6fb; color: white; }

/* Buttons */
.btn-action {
    margin-left: 10px;
    margin-bottom: 10px;
    padding: 10px 20px;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

.btn-success {
    background-color: #02c58d;
    border-color: #02c58d;
}

.btn-info {
    background-color: #59c6fb;
    border-color: #59c6fb;
}

.btn-warning {
    background-color: #fcbe2d;
    border-color: #fcbe2d;
    color: #333;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}

/* Responsive */
.hamburger-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px 10px;
    margin-left: 15px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
}

@media (max-width: 768px) {
    .hamburger-toggle {
        display: block;
    }

    .sidebar {
        width: 0;
        overflow: hidden;
        transition: width 0.3s ease;
    }

    .sidebar.open {
        width: var(--sidebar-width);
        overflow-y: auto;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-right: 0;
    }

    .top-navbar {
        padding: 0 15px;
        justify-content: space-between;
    }

    .page-content {
        padding: 20px 15px;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .room-status-grid {
        grid-template-columns: 1fr;
    }

    .search-box input {
        width: 150px;
    }

    .stat-info h3 {
        font-size: 1.4rem;
    }

    .stat-info p {
        font-size: 0.8rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }

    .stat-icon i {
        font-size: 1.2rem;
    }

    .org-level {
        gap: 30px;
        flex-wrap: wrap;
    }

    .org-level.level-2 {
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
    }

    .org-level.level-2::before {
        display: none;
    }

    .org-department::before {
        height: 20px;
        top: -20px;
    }

    .org-subordinates {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .org-subordinates::before {
        height: 20px;
        top: -20px;
    }

    .org-node {
        min-width: 150px;
        padding: 10px 15px;
    }

    .org-node img {
        width: 50px;
        height: 50px;
    }

    .emp-level {
        gap: 20px;
        flex-wrap: wrap;
    }

    .emp-department::before {
        height: 20px;
        top: -20px;
    }

    .emp-subordinates {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
    }

    .emp-subordinates::before {
        height: 20px;
        top: -20px;
    }

    .emp-node {
        min-width: 140px;
        padding: 10px 14px;
    }

    .emp-node img {
        width: 40px;
        height: 40px;
    }

    .emp-node h6 {
        font-size: 0.85rem;
    }

    .card-header .d-flex {
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn-action {
        margin-left: 5px;
        font-size: 0.85rem;
        padding: 8px 15px;
    }

    #roomSearchForm .col-md-3 {
        margin-bottom: 10px;
    }

    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .fc .fc-toolbar-title {
        font-size: 1rem !important;
    }

    .fc .fc-button {
        padding: 0.2rem 0.5rem;
        font-size: 0.85rem;
    }

    .form-group.row .col-sm-3 {
        margin-bottom: 5px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .room-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* FullCalendar Custom Styles */
.fc {
    font-family: 'Poppins', sans-serif;
    direction: rtl;
}

#calendar {
    min-height: 500px;
}

.fc-toolbar-title {
    color: #1a382c !important;
    font-size: 1.2rem !important;
}

.fc-button {
    background-color: #1a382c !important;
    border-color: #1a382c !important;
    color: white !important;
}

.fc-button:hover {
    background-color: #2d5a48 !important;
    border-color: #2d5a48 !important;
}

.fc-button:disabled {
    background-color: #2d5a48 !important;
    border-color: #2d5a48 !important;
    opacity: 0.7;
}

.fc-event {
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 0.85rem;
}

.fc-daygrid-event {
    margin-top: 2px;
}

.fc-header-toolbar {
    margin-bottom: 1.5rem !important;
}

.fc-day-today {
    background-color: rgba(26, 56, 44, 0.05) !important;
}

/* Task Details Modal Styles */
#taskModal .modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

#taskModal .modal-header {
    background-color: #1a382c;
    color: white;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

#taskModal .modal-header .close {
    color: white;
    opacity: 1;
    text-shadow: none;
}

#taskModal .modal-title {
    font-weight: 600;
}

#taskModal .modal-body {
    padding: 20px;
}

#taskModal .task-details label {
    color: #1a382c;
    font-size: 0.9rem;
}

#taskModal .form-control-static {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

#taskModal .badge-info {
    background-color: #59c6fb;
    color: white;
    padding: 5px 10px;
}

#taskModal .badge-secondary {
    background-color: #6c757d;
    color: white;
}

#taskModal #taskSteps .list-group-item {
    border-radius: 4px;
    margin-bottom: 5px;
    border: 1px solid #eee;
}

/* Add Task Modal Styles */
#addTaskModal .modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

#addTaskModal .modal-header {
    background-color: #1a382c;
    color: white;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

#addTaskModal .modal-title {
    font-weight: 600;
}

#addTaskModal .modal-body {
    padding: 20px;
}

#addTaskModal .form-group {
    margin-bottom: 15px;
}

#addTaskModal .col-form-label {
    font-weight: 500;
    color: #1a382c;
}

#addTaskModal .close {
    color: white;
    opacity: 1;
    text-shadow: none;
}

/* Room Accordion Styles */
#roomAccordion .card-header {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.125);
}

#roomAccordion .btn-link {
    color: #1a382c;
    font-weight: 500;
    text-decoration: none;
    padding: 0;
    width: 100%;
    text-align: right;
}

#roomAccordion .btn-link:hover {
    color: #2d5a48;
    text-decoration: none;
}

#roomAccordion .btn-link.collapsed {
    color: #6c757d;
}

#roomAccordion .btn-link i {
    margin-left: 8px;
}

/* Room Cards */
.room-card {
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.room-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.room-card.available {
    border-color: #02c58d;
}

.room-card.occupied {
    border-color: #30419b;
}

.room-card.occupied .badge {
    background-color: #30419b;
    color: white;
}

.room-card.maintenance {
    border-color: #fcbe2d;
}

.room-card.maintenance .badge {
    background-color: #fcbe2d;
    color: #333;
}

.room-card.reserved {
    border-color: #59c6fb;
}

.room-card.reserved .badge {
    background-color: #59c6fb;
    color: white;
}

.room-card .card-body {
    padding: 10px;
}

.room-card h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a382c;
    margin-bottom: 5px;
}

.room-card .badge {
    font-size: 0.75rem;
    padding: 3px 8px;
}

/* تنسيقات نموذج البحث عن الغرف */
#roomSearchForm {
    padding: 10px 0;
}

#roomSearchForm label {
    font-weight: 500;
    color: #1a382c;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

#roomSearchForm .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 8px 12px;
}

#roomSearchForm .form-control:focus {
    border-color: #1a382c;
    box-shadow: 0 0 0 0.2rem rgba(26, 56, 44, 0.25);
}

#searchRoomBtn {
    height: calc(1.5em + 0.75rem + 2px);
}

/* Organizational Chart Styles */
.org-chart {
    width: 100%;
    min-height: 600px;
    padding: 40px 20px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.connector-vertical {
    width: 2px;
    height: 40px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.org-level {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0;
    position: relative;
}

.org-level.level-2 {
    padding-top: 40px;
    width: 100%;
}

.org-level.level-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background-color: var(--primary-color);
}

.org-department {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.org-department::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background-color: var(--primary-color);
}

.org-node {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px 20px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 180px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
    margin: 15px 0;
}

.org-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.org-node img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}

.org-node h5 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1rem;
}

.org-node p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.org-node .badge {
    font-size: 0.75rem;
}

.org-node-actions {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.icon-btn i {
    font-size: 0.85rem;
}

.org-subordinates {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    position: relative;
}

.org-subordinates::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background-color: var(--primary-color);
}

.org-subordinates .org-node {
    margin: 0;
}

/* Employee Tree View Styles */
.employee-tree {
    width: 100%;
    min-height: 400px;
    padding: 30px 20px;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.emp-connector {
    width: 2px;
    height: 30px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.emp-level {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0;
    position: relative;
    flex-wrap: wrap;
}

.emp-level.with-connector {
    padding-top: 30px;
}

.emp-level.with-connector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    height: 2px;
    background-color: var(--primary-color);
}

.emp-department {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.emp-department::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background-color: var(--primary-color);
}

.emp-node {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px 16px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 160px;
    text-align: center;
    position: relative;
    transition: transform 0.2s;
    margin: 10px 0;
}

.emp-node:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.emp-node img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 8px;
    object-fit: cover;
}

.emp-node h6 {
    color: var(--primary-color);
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.emp-node .emp-title {
    color: #555;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.emp-node .badge {
    font-size: 0.7rem;
}

.emp-subordinates {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
}

.emp-subordinates::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background-color: var(--primary-color);
}

.emp-subordinates .emp-node {
    margin: 0;
}

/* View Toggle Buttons */
.view-toggle .btn {
    border-radius: 0;
    padding: 5px 10px;
    font-size: 0.85rem;
}

.view-toggle .btn:first-child {
    border-radius: 0 4px 4px 0;
}

.view-toggle .btn:last-child {
    border-radius: 4px 0 0 4px;
}

@media screen and (max-width: 500px) {
    .fc .fc-col-header-cell-cushion {
        transform: rotate(-90deg);
        height: 50px;
        position: relative;
        right: -20px;
        font-size: 13px;
    }
}

/* Year View Styles */
.year-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.year-view-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.3rem;
}

.year-view-header .btn {
    margin-right: 10px;
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.month-card {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.month-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(26, 56, 44, 0.15);
}

.month-card .month-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.month-card .month-badge {
    display: inline-block;
    background-color: rgba(26, 56, 44, 0.1);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.month-card.current {
    border-color: var(--primary-color);
    background-color: rgba(26, 56, 44, 0.05);
}

.back-to-year-btn {
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .months-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .month-card {
        padding: 15px 10px;
    }

    .month-card .month-name {
        font-size: 0.95rem;
    }

    .year-view-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 500px) {
    .months-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a382c 0%, #2d5a48 100%);
    padding: 20px;
}

.login-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
    padding: 40px 35px;
    text-align: center;
}

.login-logo {
    height: 80px;
    margin-bottom: 15px;
}

.login-title {
    color: #1a382c;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.login-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.login-form .form-group {
    text-align: right;
    margin-bottom: 20px;
}

.login-form label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.input-group .form-control {
    border: 1px solid #e1e1e1;
    border-right: none;
    border-radius: 8px 0 0 8px !important;
    padding: 12px 15px;
    font-size: 0.95rem;
}

.input-group .form-control:focus {
    border-color: #1a382c;
    box-shadow: none;
}

.input-group .input-group-prepend .input-group-text {
    background-color: #1a382c;
    border: 1px solid #1a382c;
    color: #fff;
    border-radius: 0 8px 8px 0;
}

.btn-login {
    background-color: #1a382c;
    border-color: #1a382c;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #2d5a48;
    color: white;
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.error-message {
    display: none;
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.login-footer {
    margin-top: 25px;
    color: #888;
    font-size: 0.8rem;
}

@media (max-width: 500px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 1.3rem;
    }
}

/* Projects Page Styles */
.projects-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a382c 0%, #2d5a48 100%);
    padding: 40px 20px;
}

.projects-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.projects-header img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.projects-header h1 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 10px;
}

.projects-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.projects-grid {
    width: 100%;
    max-width: 1200px;
}

.project-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card-body {
    padding: 20px;
    text-align: center;
}

.project-card-body h5 {
    color: #1a382c;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.project-card-body h5 i {
    margin-left: 8px;
    color: #1a382c;
}

.btn-project-login {
    background-color: #1a382c;
    border-color: #1a382c;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 30px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.btn-project-login:hover {
    background-color: #2d5a48;
    color: white;
}

.projects-footer {
    margin-top: 40px;
    color: white;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .projects-header h1 {
        font-size: 1.5rem;
    }

    .projects-header p {
        font-size: 0.95rem;
    }

    .project-card img {
        height: 180px;
    }
}

@media (max-width: 500px) {
    .projects-page {
        padding: 30px 15px;
    }

    .projects-header {
        margin-bottom: 25px;
    }

    .projects-header h1 {
        font-size: 1.3rem;
    }

    .project-card img {
        height: 150px;
    }
}

/* Notification Dropdown */
.notification-wrapper {
    position: relative;
    display: inline-block;
}

.notification-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.notification-icon:hover {
    background-color: var(--bg-light);
}

.notification-icon i {
    font-size: 1.2rem;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.notification-dropdown-menu {
    width: 340px;
    padding: 0;
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: 12px;
    overflow: hidden;
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: white;
}

.notification-dropdown-header h6 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.notification-dropdown-header .mark-all-read {
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s;
}

.notification-dropdown-header .mark-all-read:hover {
    color: white;
    text-decoration: underline;
}

.notification-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: #f0f7f4;
}

.notification-item:hover {
    background-color: var(--bg-light);
}

.notification-item.no-notifications {
    justify-content: center;
    padding: 30px 20px;
}

.notification-item.no-notifications p {
    color: #999;
    font-size: 0.9rem;
    text-align: center;
}

.notification-icon-wrap {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}

.notification-icon-wrap.bg-success {
    background-color: #d4edda;
    color: #155724;
}

.notification-icon-wrap.bg-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.notification-icon-wrap.bg-warning {
    background-color: #fff3cd;
    color: #856404;
}

.notification-icon-wrap i {
    font-size: 0.85rem;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.notification-content small {
    color: #999;
    font-size: 0.75rem;
}

.view-all {
    display: block;
    text-align: center;
    padding: 12px;
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

.view-all:hover {
    background-color: #e8f0ec;
    color: var(--primary-dark);
}