/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #007bff;
    --sidebar-bg: #252525;
    --sidebar-text: rgba(255, 255, 255, 0.8);
    --sidebar-text-active: white;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    height: 100vh;
    color: white;
    padding: 0;
    border-right: 1px solid var(--border-color);
}

/* ===== LOGO CONTAINER ===== */
.logo-container {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.9;
}

.logo-text {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== SIDEBAR MENU ===== */
.sidebar-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 0;
    overflow-y: auto;
}

.menu-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.menu-section:not(:last-child) {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
}

.menu-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.menu-item.active {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
    font-weight: 500;
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    opacity: 0.9;
    font-size: 18px;
}

.menu-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== PROFILE SECTION ===== */
.profile-section {
    position: relative;
    padding: 12px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.profile-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-button:hover {
    background: var(--sidebar-hover);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-right: 12px;
    font-size: 16px;
}

.profile-info {
    text-align: left;
    flex: 1;
}

.profile-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.profile-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== PROFILE MENU ===== */
.profile-menu {
    position: absolute;
    bottom: 100%;
    left: 12px;
    right: 12px;
    background: #2d2d2d;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 8px;
    display: none;
    border: 1px solid var(--border-color);
}

.profile-menu.show {
    display: block;
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.profile-menu-item .menu-icon {
    font-size: 16px;
    margin-right: 12px;
    opacity: 0.9;
}

.profile-menu-item .menu-text {
    flex: 1;
    font-weight: 500;
}

.profile-menu-item:hover {
    background: var(--sidebar-hover);
}

.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* ===== SIDEBAR SCROLLBAR ===== */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 280px;
    padding: 20px;
    min-height: 100vh;
}

/* ===== MOBILE MENU TOGGLE ===== */
.menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    background: var(--sidebar-bg);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background: #333;
}

.menu-toggle.active {
    background: #333;
}

.hamburger {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.hamburger:before,
.hamburger:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.hamburger:before {
    top: -6px;
}

.hamburger:after {
    top: 6px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger:before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger:after {
    top: 0;
    transform: rotate(-45deg);
}

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #000;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

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

.btn-secondary:hover {
    background: #5a6268;
}

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

.btn-primary:hover {
    background: #0056b3;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .sidebar.show {
        left: 0;
    }

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

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

.p-1 {
    padding: 8px;
}

.p-2 {
    padding: 16px;
}

.p-3 {
    padding: 24px;
}

.m-1 {
    margin: 8px;
}

.m-2 {
    margin: 16px;
}

.m-3 {
    margin: 24px;
}

/* ===== PREMIUM PASSWORD MODAL STYLES ===== */
.password-modal {
    max-width: 550px;
    width: 95%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-80px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.password-modal-header {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffa726 100%);
    color: white;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border: none;
    position: relative;
    overflow: hidden;
}

.password-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.modal-title-section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.modal-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon {
    font-size: 36px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 2;
}

.modal-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: iconGlow 2s ease-in-out infinite alternate;
}

@keyframes iconGlow {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    to {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

.modal-title-text h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-subtitle {
    margin: 6px 0 0 0;
    font-size: 15px;
    opacity: 0.9;
    font-weight: 400;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(90deg);
}

.password-modal-body {
    padding: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    max-height: 70vh;
    overflow-y: auto;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.security-section {
    padding: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    margin-bottom: 1px;
}

.security-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.security-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #ff6b35;
}

.security-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.security-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.password-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.password-input-group:last-child {
    margin-bottom: 0;
}

.form-label.premium {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
    margin-bottom: 8px;
}

.required {
    color: #e53e3e;
    font-size: 16px;
    margin-left: auto;
}

.label-icon {
    font-size: 18px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    width: 100%;
    padding: 18px 55px 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
    font-weight: 500;
}

.password-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
}

.system-input {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    padding-right: 120px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #718096;
}

.toggle-password:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    transform: scale(1.1);
}

.verify-btn {
    position: absolute;
    right: 8px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verify-btn:hover {
    background: linear-gradient(135deg, #e55a2b, #e57a32);
    transform: scale(1.05);
}

.verify-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.system-status {
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.system-status.success {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #9ae6b4;
    display: block;
}

.system-status.error {
    background: #fed7d7;
    color: #e53e3e;
    border: 1px solid #feb2b2;
    display: block;
}

.password-strength {
    margin-top: 12px;
}

.strength-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.4s ease;
    border-radius: 3px;
    position: relative;
}

.strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.3) 25%, rgba(255, 255, 255, 0.3) 50%, transparent 50%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.strength-percentage {
    font-size: 14px;
    font-weight: 700;
    color: #4a5568;
    min-width: 40px;
    text-align: right;
}

.strength-fill.weak {
    width: 25%;
    background: linear-gradient(135deg, #ff4757, #ff6b7d);
}

.strength-fill.fair {
    width: 50%;
    background: linear-gradient(135deg, #ffa502, #ff9f43);
}

.strength-fill.good {
    width: 75%;
    background: linear-gradient(135deg, #26de81, #7bed9f);
}

.strength-fill.strong {
    width: 100%;
    background: linear-gradient(135deg, #45b7d1, #96c7ed);
}

.strength-text {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

.password-match {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-top: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.match-icon {
    font-weight: bold;
    font-size: 16px;
}

.premium-requirements {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.requirements-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.requirement-item.valid {
    background: linear-gradient(135deg, #f0fff4, #c6f6d5);
    border-color: #9ae6b4;
    transform: scale(1.02);
}

.req-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #cbd5e0;
    transition: all 0.3s ease;
}

.requirement-item.valid .req-icon {
    background: #38a169;
    border-color: #38a169;
    color: white;
}

.requirement-item.valid .req-icon::before {
    content: '✓';
}

.req-text {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.requirement-item.valid .req-text {
    color: #2d3748;
}

.security-tips {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tip-icon {
    font-size: 18px;
}

.tip-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tips-list li {
    font-size: 13px;
    color: #718096;
    padding-left: 20px;
    position: relative;
}

.tips-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
}

.password-modal-footer {
    padding: 28px 32px;
    background: white;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    border-top: 1px solid #e2e8f0;
}

.premium-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.premium-btn:hover::before {
    left: 100%;
}

.premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.premium-btn.primary {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.premium-btn.primary:hover {
    background: linear-gradient(135deg, #e55a2b, #e57a32);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.premium-btn:not(.primary) {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    color: #4a5568;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.premium-btn:not(.primary):hover {
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
    color: #2d3748;
}

.premium-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-loading {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-icon {
    font-size: 18px;
}

.btn-text {
    font-weight: 600;
}

/* ===== CLEAN PASSWORD MODAL STYLES ===== */
.password-modal-clean {
    max-width: 400px;
    width: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid #e1e5e9;
}

.modal-header-clean {
    background: #ff6b35;
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.modal-title-clean {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn-clean {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.close-btn-clean:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-body-clean {
    padding: 24px;
    background: white;
}

.form-group-clean {
    margin-bottom: 20px;
}

.form-group-clean:last-child {
    margin-bottom: 0;
}

.form-label-clean {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.input-container-clean {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    transition: all 0.2s ease;
}

.input-container-clean:focus-within {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input-clean {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    font-family: monospace;
    letter-spacing: 1px;
}

.form-input-clean::placeholder {
    color: #9ca3af;
    font-family: monospace;
    letter-spacing: 2px;
}

.show-btn-clean {
    background: none;
    border: none;
    color: #ff6b35;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    transition: all 0.2s ease;
    border-left: 1px solid #e5e7eb;
}

.show-btn-clean:hover {
    background: #f9fafb;
    color: #e55a2b;
}

.modal-footer-clean {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.btn-cancel-clean,
.btn-save-clean {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.btn-cancel-clean {
    background: white;
    color: #374151;
}

.btn-cancel-clean:hover {
    background: #f3f4f6;
}

.btn-save-clean {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.btn-save-clean:hover {
    background: #e55a2b;
    border-color: #e55a2b;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 767px) {

    /* Mobile Sidebar Styles */
    .sidebar {
        width: 100% !important;
        height: auto !important;
        flex-direction: row !important;
        padding: 12px 16px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1000 !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        background: var(--sidebar-bg) !important;
    }

    .logo-container {
        padding: 0 !important;
        margin-right: auto !important;
        border-bottom: none !important;
        gap: 8px !important;
    }

    .logo {
        width: 36px !important;
        height: 36px !important;
    }

    .logo-text {
        font-size: 14px !important;
        display: none !important;
    }

    .sidebar-menu {
        display: none !important;
    }

    .profile-section {
        margin-left: auto !important;
        margin-top: 0 !important;
    }

    .profile-button {
        padding: 8px !important;
        min-height: auto !important;
        gap: 8px !important;
    }

    .profile-info {
        display: none !important;
    }

    .profile-avatar {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    .profile-menu {
        position: fixed !important;
        top: 60px !important;
        right: 16px !important;
        left: auto !important;
        width: 220px !important;
        z-index: 1001 !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    }

    .profile-menu-item {
        padding: 16px 20px !important;
        font-size: 15px !important;
    }

    /* Password Modal Mobile */
    .password-modal-clean {
        width: 95% !important;
        max-width: 350px !important;
        margin: 20px auto !important;
    }

    .modal-header-clean {
        padding: 16px 20px !important;
    }

    .modal-title-clean {
        font-size: 16px !important;
    }

    .modal-body-clean {
        padding: 20px !important;
    }

    .form-group-clean {
        margin-bottom: 18px !important;
    }

    .form-label-clean {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }

    .input-container-clean {
        min-height: 44px !important;
    }

    .form-input-clean {
        padding: 12px 14px !important;
        font-size: 16px !important;
        /* Prevent zoom on iOS */
    }

    .show-btn-clean {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }

    .modal-footer-clean {
        padding: 16px 20px !important;
        flex-direction: column-reverse !important;
        gap: 8px !important;
    }

    .btn-cancel-clean,
    .btn-save-clean {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 16px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {

    /* Small Mobile Styles */
    .sidebar {
        padding: 10px 12px !important;
    }

    .logo {
        width: 32px !important;
        height: 32px !important;
    }

    .profile-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    .profile-menu {
        top: 52px !important;
        right: 12px !important;
        width: 200px !important;
    }

    .profile-menu-item {
        padding: 14px 16px !important;
        font-size: 14px !important;
    }

    .menu-icon {
        font-size: 16px !important;
    }

    /* Ultra-compact modal for very small screens */
    .password-modal-clean {
        width: 98% !important;
        margin: 10px auto !important;
    }

    .modal-header-clean {
        padding: 14px 16px !important;
    }

    .modal-title-clean {
        font-size: 15px !important;
    }

    .modal-body-clean {
        padding: 16px !important;
    }

    .form-group-clean {
        margin-bottom: 16px !important;
    }

    .form-label-clean {
        font-size: 12px !important;
    }

    .input-container-clean {
        min-height: 42px !important;
    }

    .form-input-clean {
        padding: 10px 12px !important;
        font-size: 16px !important;
    }

    .show-btn-clean {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}

.logo-text {
    font-size: 15px !important;
}

.profile-button {
    padding: 14px 16px !important;
}

.profile-avatar {
    width: 42px !important;
    height: 42px !important;
    font-size: 18px !important;
}

.profile-name {
    font-size: 15px !important;
}

.profile-role {
    font-size: 12px !important;
}

.profile-menu {
    width: 220px !important;
}

.profile-menu-item {
    padding: 14px 18px !important;
    font-size: 14px !important;
}
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .sidebar {
        width: 300px !important;
    }

    .logo {
        width: 52px !important;
        height: 52px !important;
    }

    .logo-text {
        font-size: 17px !important;
    }

    .profile-button {
        padding: 18px 20px !important;
    }

    .profile-avatar {
        width: 50px !important;
        height: 50px !important;
        font-size: 22px !important;
    }

    .profile-name {
        font-size: 17px !important;
    }

    .profile-role {
        font-size: 14px !important;
    }

    .profile-menu {
        width: 260px !important;
    }

    .profile-menu-item {
        padding: 16px 24px !important;
        font-size: 15px !important;
    }

    .password-modal-clean {
        max-width: 450px !important;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .sidebar {
        padding: 8px 12px !important;
    }

    .logo {
        width: 28px !important;
        height: 28px !important;
    }

    .profile-avatar {
        width: 240px !important;
    }

    .logo-text {
        font-size: 15px !important;
    }

    .profile-button {
        padding: 14px 16px !important;
    }

    .profile-avatar {
        width: 42px !important;
        height: 42px !important;
        font-size: 18px !important;
    }

    .profile-name {
        font-size: 15px !important;
    }

    .profile-role {
        font-size: 12px !important;
    }

    .profile-menu {
        width: 220px !important;
    }

    .profile-menu-item {
        padding: 14px 18px !important;
        font-size: 14px !important;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .sidebar {
        width: 300px !important;
    }

    .logo {
        width: 52px !important;
        height: 52px !important;
    }

    .logo-text {
        font-size: 17px !important;
    }

    .profile-button {
        padding: 18px 20px !important;
    }

    .profile-avatar {
        width: 50px !important;
        height: 50px !important;
        font-size: 22px !important;
    }

    .profile-name {
        font-size: 17px !important;
    }

    .profile-role {
        font-size: 14px !important;
    }

    .profile-menu {
        width: 260px !important;
    }

    .profile-menu-item {
        padding: 16px 24px !important;
        font-size: 15px !important;
    }

    .password-modal-clean {
        max-width: 450px !important;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .sidebar {
        padding: 8px 12px !important;
    }

    .logo {
        width: 28px !important;
        height: 28px !important;
    }

    .profile-avatar {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }

    .profile-menu {
        top: 44px !important;
        right: 12px !important;
        width: 180px !important;
    }

    .profile-menu-item {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }

    .password-modal-clean {
        max-height: 80vh !important;
        overflow-y: auto !important;
    }

    .modal-body-clean {
        max-height: 50vh !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 480px) {
    .password-modal-clean {
        width: 95%;
        margin: 20px;
    }

    .modal-header-clean {
        padding: 16px 20px;
    }

    .modal-title-clean {
        font-size: 16px;
    }

    .modal-body-clean {
        padding: 20px;
    }

    .modal-footer-clean {
        padding: 12px 20px;
        flex-direction: column-reverse;
    }

    .btn-cancel-clean,
    .btn-save-clean {
        width: 100%;
        justify-content: center;
    }
}

/* ===== LOGIN PAGE STYLES ===== */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-color);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    backdrop-filter: blur(var(--card-blur));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.4s ease-out;
    text-align: center;
}

.login-header {
    margin-bottom: 24px;
}

.login-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 16px;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.login-sub {
    font-size: 14px;
    color: #718096;
}

.login-status {
    margin: 16px 0;
    font-size: 14px;
    color: var(--text-color);
    padding: 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.05);
}

.ms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #2d3748;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ms-btn:hover {
    background: #f7fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.ms-logo {
    display: flex;
    align-items: center;
}

.login-footer {
    margin-top: 24px;
    font-size: 12px;
    color: #a0aec0;
}

/* ===== ADMIN / TABLE STYLES ===== */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary-color), #ff8c42);
    padding: 24px 32px;
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
}

.page-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.table-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8fafc;
    padding: 16px 24px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #edf2f7;
    color: #2d3748;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: #f7fafc;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-edit {
    background: #ebf8ff;
    color: #3182ce;
}

.btn-edit:hover {
    background: #bee3f8;
}

.btn-delete {
    background: #fff5f5;
    color: #e53e3e;
}

.btn-delete:hover {
    background: #fed7d7;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: #edf2f7;
}

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

/* Responsive Table */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }

    .table-card {
        overflow-x: auto;
    }

    .data-table th,
    .data-table td {
        padding: 12px 16px;
    }

    .action-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
}