/* base.css - Master Stylesheet for TRUNKLINE WebApp platform/system */
/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f7fb;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.login-wrapper {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.login-card {
    background: linear-gradient(135deg, lightgray 0%, gray 100%);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: #F6EED9;
    padding: 40px 20px 30px;
    text-align: center;
    color: white;
    position: relative;
}

.logo-container {
    margin-bottom: 15px;
}

.logo-container img {
    max-width: 70px;
    height: auto;
    border-radius: 12px;
    background: white;
    padding: 8px;
}

.brand-text {
    font-weight: 800;
    font-size: clamp(32px, 8vw, 50px);
    line-height: 1.1;
    margin-bottom: 5px;
}

.brand-text .trunk {
    color: white;
}

.brand-text .line {
    color: #FFD966;
}

.login-header h1 {
    font-size: clamp(16px, 4vw, 20px);
    margin: 10px 0 5px;
    font-weight: 500;
}

.login-header p {
    font-size: clamp(12px, 3.5vw, 14px);
    opacity: 0.9;
    margin: 0;
}

.profile-circle {
    position: relative;
    margin-top: -30px;
    margin-bottom: 10px;
    text-align: center;
}

.profile-circle-inner {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 4px solid white;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.profile-circle-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-circle::before,
.profile-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100%;
    height: 3px;
    background: white;
    transform: translateY(-50%);
}

.profile-circle::before {
    right: calc(50% + 40px);
}

.profile-circle::after {
    left: calc(50% + 40px);
}

.login-body {
    padding: 30px 25px 25px;
}

/* ===== FORM ELEMENTS (Consolidated) ===== */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group label i {
    color: #FA7143;
    margin-right: 8px;
    width: 16px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    z-index: 1;
}

.form-control {
    width: 100%;
    padding: 12px 45px 12px 45px !important;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    -webkit-appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: #FA7143;
    box-shadow: 0 0 0 3px rgba(250, 113, 67, 0.1);
}

.form-control::placeholder {
    color: #aaa;
    font-size: 15px;
}

.password-toggle,
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    font-size: 18px;
    z-index: 1;
    padding: 5px;
}

.password-toggle:hover,
.toggle-password:hover {
    color: #FA7143;
}

/* ===== PASSWORD REQUIREMENTS & STRENGTH (Consolidated) ===== */
.password-requirements {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0 10px;
    font-size: 13px;
}

.password-requirements strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.password-requirements li i {
    width: 18px;
    font-size: 14px;
}

.requirement-met {
    color: #28a745 !important;
}

.requirement-unmet {
    color: #dc3545 !important;
}

.password-strength {
    height: 5px;
    background: #e0e0e0;
    border-radius: 5px;
    margin: 10px 0 5px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

.strength-bar.strength-weak {
    background: #dc3545;
}

.strength-bar.strength-medium {
    background: #ffc107;
}

.strength-bar.strength-strong {
    background: #28a745;
}

.strength-text {
    font-size: 12px;
    margin-bottom: 10px;
    text-align: right;
}

/* ===== CHECKBOX STYLES ===== */
.form-check {
    margin: 15px 0 20px;
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    border: 2px solid #e0e0e0;
}

.form-check-input:checked {
    background-color: #FA7143;
    border-color: #FA7143;
}

.form-check-label {
    color: #666;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
}

/* ===== BUTTONS (Consolidated) ===== */
.btn-login,
.btn-change,
.btn-save,
.btn-create,
.btn-filter {
    background: linear-gradient(135deg, lightgray 0%, gray 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-change,
.btn-save {
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    width: 100%;
}

.btn-create {
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.btn-filter {
    padding: 10px 25px;
    border-radius: 8px;
}

.btn-login:hover:not(:disabled),
.btn-change:hover:not(:disabled),
.btn-save:hover,
.btn-create:hover,
.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(250, 113, 67, 0.3);
}

.btn-login:disabled,
.btn-change:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-login i,
.btn-change i,
.btn-save i,
.btn-create i,
.btn-filter i {
    font-size: inherit;
}

.btn-view-all {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.btn-view-all:hover {
    background: #e0e0e0;
    color: #333;
}

.btn-reset {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #e0e0e0;
    color: #333;
}

.btn-notification {
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.btn-notification:hover {
    background: linear-gradient(135deg, lightgray 0%, gray 100%);
    color: white;
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== ALERT STYLES ===== */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #e8f5e9;
    color: #28a745;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #fee;
    color: #dc3545;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 18px;
}

/* ===== LOGIN FOOTER ===== */
.login-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.login-footer a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    padding: 5px;
}

.login-footer a:hover {
    color: #FA7143;
}

.login-footer i {
    font-size: 14px;
}

.login-footer .separator {
    color: #ddd;
    font-size: 14px;
}

.login-footer-text {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.login-footer-text a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.login-footer-text a:hover {
    text-decoration: underline;
}

/* ===== POPUP MODAL ===== */
.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 15px;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: white;
    border-radius: 24px;
    padding: 30px 25px;
    max-width: 350px;
    width: 100%;
    text-align: center;
    animation: popIn 0.3s ease-out;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
}

.popup-icon.error {
    background: #fee;
    color: #dc3545;
}

.popup-icon.success {
    background: #e8f5e9;
    color: #28a745;
}

.popup-icon.info {
    background: #e3f2fd;
    color: #1976d2;
}

.popup-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

.popup-button {
    background: linear-gradient(135deg, lightgray 0%, gray 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 113, 67, 0.3);
}

/* ===== EMAIL STATUS ===== */
#email-status {
    position: absolute;
    top: -32px;
    left: 15px;
    right: 15px;
    font-size: 12px;
    line-height: 1.5;
    min-height: 18px;
}

#email-status span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 0;
}

#email-status i {
    font-size: 12px;
    width: 14px;
}

#email-status .text-danger,
#email-status .error-message {
    color: #dc3545;
}

#email-status .text-success,
#email-status .success-message {
    color: #28a745;
}

#email-status .text-info,
#email-status .info-message {
    color: #666;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    background: linear-gradient(135deg, lightgray 0%, gray 100%);
    width: 280px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 30px 20px 20px;
    text-align: center;
}

.sidebar-header h3 {
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 5px;
}

.profile-section {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.profile-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.profile-role {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-menu {
    padding: 20px 0;
}

.nav-item {
    padding: 12px 25px;
    margin: 5px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(250, 113, 67, 0.1);
}

.nav-item a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 15px;
}

.nav-item i {
    width: 25px;
    margin-right: 10px;
    font-size: 15px;
    color: #666;
}

.nav-item:hover i,
.nav-item.active i {
    color: white;
}

.dropdown-items {
    margin: 0 15px 0 40px;
}

.dropdown-items .nav-item {
    margin: 2px 0;
    padding: 8px 10px;
}


/* Fix for nav item spacing */
.nav-item {
    padding: 12px 25px;
    margin: 5px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.nav-item a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: left;
    font-size: 15px;
    width: 100%;
    gap: 10px;
}
.nav-item a i:first-child {
    width: 25px;
    margin-right: 10px;
}
.nav-item a .dropdown-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 14px;
    line-height: 1;
}
/* Ensure consistent height when icon rotates */
.nav-item a i {
    line-height: 1;
    vertical-align: middle;
}
/* Active state for settings menu */
#settingsMenu.active {
    background: rgba(250, 113, 67, 0.1);
}
#settingsMenu.active .dropdown-icon {
    transform: rotate(180deg);
}
/* Dropdown items styling */
.dropdown-items {
    margin: 0 15px 0 40px;
}
.dropdown-items .nav-item {
    margin: 2px 0;
    padding: 8px 10px;
}
.dropdown-items .nav-item a {
    justify-content: flex-start;
    gap: 10px;
}
.dropdown-items .nav-item a i:first-child {
    width: 25px;
    margin-right: 10px;
}

/* ===== MAIN CONTENT AREA ===== */
.main-content {
    margin-left: 280px;
    padding: 30px;
    width: calc(100% - 280px);
    min-height: 100vh;
    background: #f5f7fb;
}

.top-bar {
    margin-bottom: 30px;
}

.page-title h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.page-title h2 i {
    color: #FA7143;
    margin-right: 10px;
}

.page-title p {
    color: #666;
    font-size: 14px;
}

.top-actions {
    display: flex;
    gap: 10px;
}

/* ===== PROFILE CARD STYLES ===== */
.profile-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-header {
    background: linear-gradient(135deg, lightgray 0%, gray 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header h3 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
}

.profile-header p {
    opacity: 0.9;
    margin: 0;
}

.profile-body {
    padding: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-item .label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.section-title {
    font-size: 18px;
    color: #333;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

.section-title i {
    color: #FA7143;
    margin-right: 10px;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* ===== FILE INPUT ===== */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-button {
    background: #f0f0f0;
    color: #333;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.file-input-button:hover {
    background: #e0e0e0;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-name {
    color: #666;
    font-size: 14px;
}

/* ===== MENU TOGGLE ===== */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background: linear-gradient(135deg, lightgray 0%, gray 100%);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(250, 113, 67, 0.3);
}

/* ===== INFO NOTE ===== */
.info-note {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #FA7143;
    font-size: 14px;
}

.info-note i {
    color: #FA7143;
    margin-right: 8px;
}

/* ===== USERS PAGE SPECIFIC STYLES ===== */
.user-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.role-admin {
    background: rgba(123, 31, 162, 0.1);
    color: #7B1FA2;
}

.role-user {
    background: rgba(25, 118, 210, 0.1);
    color: #1976D2;
}

.status-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-inactive {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.user-stats {
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.active {
    border-color: #1A3947;
    box-shadow: 0 4px 10px rgba(26,57,71,0.2);
}

.stat-card.admin.active {
    border-color: #7B1FA2;
}

.stat-card.user.active {
    border-color: #1976D2;
}

.stat-card.deleted.active {
    border-color: #c62828;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.open { background: rgba(255, 183, 94, 0.1); color: #FFB75E; }
.stat-icon.received { background: rgba(74, 144, 226, 0.1); color: #4A90E2; }
.stat-icon.process { background: rgba(86, 180, 211, 0.1); color: #56B4D3; }
.stat-icon.resolved { background: rgba(82, 194, 52, 0.1); color: #52c234; }
.stat-icon.total { background: rgba(250, 113, 67, 0.1); color: #FA7143; }

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #333;
}

.stat-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 3px;
}

.stat-label {
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-bar .search-box {
    flex: 2;
    min-width: 250px;
    position: relative;
}

.filter-bar .search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.filter-bar .search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.filter-bar .filter-select {
    flex: 1;
    min-width: 150px;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f0f0f0;
    color: #666;
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.btn-icon.edit:hover { background: #1976D2; color: white; }
.btn-icon.key:hover { background: #FA7143; color: white; }
.btn-icon.ban:hover { background: #dc3545; color: white; }
.btn-icon.check:hover { background: #28a745; color: white; }
.btn-icon.trash:hover { background: #c62828; color: white; }
.btn-icon.restore:hover { background: #4caf50; color: white; }

/* ===== TABLE STYLES ===== */
.table-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow-x: auto;
    margin-bottom: 30px;
}

.table-card table {
    width: 100%;
    border-collapse: collapse;
}

.table-card th {
    text-align: left;
    padding: 15px 10px;
    color: #666;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f0f0f0;
}

.table-card td {
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-size: 14px;
}

.table-card tr:hover td {
    background: #f8f9fa;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.table-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.table-header h3 i {
    color: #FA7143;
    margin-right: 10px;
}

/* ===== ACTIVITY LIST ===== */
.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: #f8f9fa;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: rgba(250, 113, 67, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FA7143;
    font-size: 16px;
}

.activity-details {
    flex: 1;
}

.activity-details strong {
    display: block;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
}

.activity-details .time {
    color: #999;
    font-size: 12px;
}

/* ===== WELCOME BANNER ===== */
.welcome-banner {
    background: linear-gradient(135deg, lightgray 0%, gray 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-text h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.welcome-text p {
    opacity: 0.9;
    margin: 0;
    font-size: 16px;
}

.welcome-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.welcome-stat {
    text-align: center;
    min-width: 80px;
}

.welcome-stat .number {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.welcome-stat .label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* ===== VIEW INDICATOR ===== */
.view-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
    gap: 15px;
}
.view-indicator .btn-create {
    margin: 0;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 5px;
    border-radius: 8px;
    background: white;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-link:hover {
    background: #f0f0f0;
    color: #333;
}

.page-link.active {
    background: linear-gradient(135deg, lightgray 0%, gray 100%);
    color: white;
    border-color: #FA7143;
}

/* ===== MODAL STYLES ===== */
.modal-header-gradient {
    background: linear-gradient(135deg, lightgray 0%, gray 100%);
    color: white;
}

.modal-header-gradient .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.modal-body .form-group label i {
    color: #FA7143;
    margin-right: 5px;
}

.modal-body .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.modal-body .form-control:focus {
    outline: none;
    border-color: #FA7143;
    box-shadow: 0 0 0 3px rgba(250, 113, 67, 0.1);
}

.modal-body .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.modal-body .form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.modal-body .form-check-label {
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.modal-body .groups-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
}

.modal-body .groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 999;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 380px) {
    .login-body {
        padding: 25px 15px 20px;
    }
    
    .brand-text {
        font-size: 36px;
    }
    
    .login-footer {
        gap: 10px;
    }
    
    .login-footer a {
        font-size: 13px;
    }
    
    .btn-login {
        padding: 14px;
        font-size: 16px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    body {
        padding: 10px;
        align-items: flex-start;
    }
    
    .login-header {
        padding: 20px 15px;
    }
    
    .profile-circle {
        margin-top: -20px;
    }
    
    .profile-circle-inner {
        width: 50px;
        height: 50px;
    }
    
    .login-body {
        padding: 20px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .form-control, 
    .btn-login, 
    .login-footer a {
        cursor: default;
    }
    
    .password-toggle,
    .toggle-password {
        padding: 10px;
    }
}