body{
    overflow-y: hidden;
}


.navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(226, 226, 226, 0.878);
    min-height: 70px;
    overflow-x: hidden;

    position: sticky;
    top: 0;
    z-index: 1050;
}

/* Logo Section */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 44px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.02em;
    position: relative;
}

.brand-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 1px;
}

.brand-title-sm {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
}

/* Profile Section - Enhanced */
.user-profile-wrapper {
    position: relative;
}

.user-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 220px;
}

.user-profile-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Profile Avatar - Larger & Enhanced */
.profile-avatar-nav {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.profile-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    border: 3px solid #fff;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: 2px solid #1e293b;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* User Info */
.user-info {
    flex-grow: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.user-role {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.dropdown-arrow {
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.user-profile-card:hover .dropdown-arrow {
    color: #fff;
    transform: translateY(2px);
}

/* Buttons */
.btn-add-employee {
   
    align-items: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    margin-left:5px;
    padding-left: 4px;
}

.btn-add-employee svg{
    margin-left: 5px;
}

.btn-add-employee:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-logout {
    display: flex;
    align-items: center;
    background: rgba(219, 136, 136, 0.1);
    color: #080808;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #030303;
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Separator */
.nav-separator {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}


@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    

    
    .user-profile-card {
        min-width: auto;
        margin-bottom: 1rem;
        background: rgba(255, 255, 255, 0.08);
    }
    
    .btn-add-employee,
    .btn-logout {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .nav-separator {
        display: none;
    }
    
    .user-name,
    .user-role {
        max-width: none;
    }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .brand-title {
        font-size: 1rem;
    }
    
    .user-profile-card {
        min-width: 180px;
    }
}

/* Desktop Hover Effects */
@media (min-width: 992px) {
    .user-profile-card::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
    
    .user-profile-card:hover::after {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 575.98px) {

    .user-profile-card {
        padding: 0;
        min-width: auto;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .user-profile-card:hover {
        background: transparent;
        transform: none;
        box-shadow: none;
    }

    .user-info {
        display: none;
    }

    .profile-avatar-nav {
        width: 40px;
        height: 40px;
    }

    .profile-image,
    .profile-icon {
        border-width: 2px;
    }

    .profile-status {
        width: 10px;
        height: 10px;
    }
}


/* profile modal */
/* Profile Modal - Black & White Aesthetic */
.profile-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem;
    background: #fafafa;
    border-radius: 12px 12px 0 0;
}

.header-line {
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #000000 0%, #333333 100%);
    border-radius: 2px;
}

.modal-title {
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #000000;
    font-weight: 600;
}

.btn-close-custom {
    background: none;
    border: none;
    padding: 8px;
    color: #666;
    transition: all 0.2s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-custom:hover {
    background: #f5f5f5;
    color: #000;
}

/* Profile Sidebar */
.profile-sidebar {
    background: #fafafa;
    border-radius: 8px;
    height: 100%;
    border-right: 1px solid #f0f0f0;
}

.avatar-container {
    position: relative;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    cursor: pointer;
}
.avatar-wrapper img:hover{
   transform: scale(1.05) rotate(2deg);
   filter: grayscale(1);
}
.avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bg-gradient-male {
    background: linear-gradient(135deg, #4a4a4a 0%, #2c2c2c 100%);
}

.bg-gradient-female {
    background: linear-gradient(135deg, #666666 0%, #404040 100%);
}

.bg-gradient-neutral {
    background: linear-gradient(135deg, #555555 0%, #333333 100%);
}

.avatar-status {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
}

.employee-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #000;
}

.employee-title {
    color: #666;
    font-size: 0.95rem;
    font-weight: 400;
}

.employee-code {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Upload Section */
.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.btn-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    color: #333;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
}

.btn-upload:hover {
    background: #f8f8f8;
    border-color: #ccc;
    color: #000;
}

.btn-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid #e0e0e0;
    color: #666;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
}

.btn-remove:hover {
    background: #fff5f5;
    border-color: #fecaca;
    color: #dc2626;
}

.upload-hint {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
}

/* Profile Details */
.profile-details {
    background: #fff;
}

.section-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333;
    font-weight: 600;
}

.btn-edit {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1.5px solid #e0e0e0;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-edit:hover {
    background: #f8f8f8;
    border-color: #ccc;
    color: #000;
}

/* Details Grid */
.details-grid {
    display: grid;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.detail-value {
    font-size: 0.95rem;
    color: #000;
    font-weight: 500;
    text-align: right;
}

.badge-type {
    background: #f5f5f5;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Alert Message */
.alert-message {
    display: flex;
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Footer */
.modal-footer {
    padding: 1rem 1.5rem;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

.btn-modal-close {
    display: flex;
    align-items: center;
    background: #000;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-modal-close:hover {
    background: #333;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-sidebar {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .detail-value {
        text-align: left;
    }
}





/* password show */
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 20px;
  height: 20px;
}




/* ============================================== */
/*                    Page Layout                 */
/* ---------------------------------------------- */


.app-wrapper {
    display: flex;
    height: calc(100vh - 70px); 
}

/* Sidebar left nav bar */
.sidebar {
    position: fixed;
    top: 80px;                
    left: 0;
    width: 240px;
    height: calc(100vh - 70px);
    background: #0f172a;
    color: #fff;
    transition: width 0.3s ease;
    overflow: hidden;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 10px;
    z-index: 1000;
}


/* Collapsed */
.sidebar.collapsed {
    width: 70px;
}

/* Toggle Button */
.sidebar-toggle {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-toggle i {
    transition: all 0.3s ease-in-out; 
}
.sidebar-toggle:hover i{ 
    transform: scale(1.5) rotate(5deg);
    
}

.sidebar-toggle i {
    font-size: 18px;
}

/* Menu */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #cbd5f5;
    text-decoration: none;
    transition: background 0.3s;
}

.sidebar-item i {
    min-width: 30px;
    font-size: 18px;
}

.sidebar-item:hover {
    background: #1e293b;
}

.sidebar-item.active {
    background: #1e40af;
    color: #fff;
}

/* Hide text when collapsed */
.sidebar.collapsed .menu-text {
    display: none;
}

/* Main Content */
.main-content {
    margin-left: 240px;      
    padding: 20px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    transition: margin-left 0.3s ease;
    width: 100%;
    
}

.sidebar.collapsed {
    width: 70px;
    top: 95px;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
}


@media (max-width: 991px) {
    .sidebar {
        width: 70px;
    }

    .sidebar .menu-text {
        display: none;
    }

    .main-content {
        margin-left: 70px;
    }
}



/* edit table */

 table{
     margin-bottom: 0;
}


#projectSection section {
    min-height: 520px; /* keeps dashboard look */
}


@media (min-width: 1200px) {
    #projectSection section {
        min-height: 650px;
    }
}

@media (min-width: 1600px) {
    #projectSection section {
        min-height: 750px;
    }
}