/* ==================== VARIABLES ==================== */
:root {
    --primary-color: #121212;
    --secondary-color: #1e1e1e;
    --tertiary-color: #2d2d2d;
    --accent-color: #0078d4;
    --accent-light: #1084d7;
    --success-color: #107c10;
    --danger-color: #d13438;
    --warning-color: #ffb900;
    --info-color: #0078d4;
    --light-bg: #3a3a3a;
    --text-color: #e0e0e0;
    --text-muted: #999999;
    --border-color: #404040;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ==================== GLOBAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    min-height: 100vh;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

body > .container-fluid {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

body > .container {
    flex: 1;
    margin: 20px auto !important;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: linear-gradient(90deg, rgba(18,18,18,0.95) 0%, rgba(30,30,30,0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 120, 212, 0.15);
    border-bottom: 2px solid var(--accent-color);
    padding: 1rem 2rem;
    flex-shrink: 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-color) !important;
    font-size: 1.3rem;
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.navbar-brand:hover {
    transform: scale(1.02);
    color: var(--accent-color);
}

.navbar-brand img {
    height: 35px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 120, 212, 0.4));
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    filter: drop-shadow(0 4px 15px rgba(0, 120, 212, 0.6));
}

.navbar .container-fluid {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    gap: 2rem;
}

.navbar-nav {
    display: flex !important;
    gap: 0 !important;
    margin: 0 !important;
    margin-left: auto !important;
    align-items: center;
    flex-direction: row !important;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1.2rem !important;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 1.2rem;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2.4rem);
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
}

/* Override generic link colors in navbar */
.navbar a,
.navbar a:hover,
.navbar a:visited,
.navbar a:active {
    color: white !important;
    text-decoration: none !important;
}

.navbar-toggler {
    border: 1px solid var(--accent-color) !important;
    padding: 0.25rem 0.5rem !important;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.3rem rgba(0, 120, 212, 0.3) !important;
    border-color: var(--accent-light) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e0e0e0' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-size: contain;
}

.navbar-collapse {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    display: none;
}

.dropdown-toggle:after {
    content: " ▼";
    font-size: 0.7rem;
    margin-left: 4px;
    transition: all 0.3s ease;
    color: white !important;
}

.dropdown-menu {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 120, 212, 0.1);
    border-radius: 10px;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
}

.dropdown-item {
    color: var(--text-color);
    transition: all 0.3s ease;
    padding: 0.75rem 1.2rem;
    font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:active {
    background: var(--accent-color);
    color: white;
}

@media (max-width: 991px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar .container-fluid {
        gap: 1rem;
    }

    .navbar-collapse {
        margin-top: 0.5rem;
        padding-top: 1rem !important;
        border-top: 1px solid var(--border-color);
        background: var(--primary-color) !important;
    }

    .navbar-nav {
        flex-direction: column !important;
        margin-left: 0 !important;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem !important;
    }

    .nav-link::after {
        display: none;
    }
}

/* ==================== CONTAINERS & CARDS ==================== */
.container-fluid:not(.navbar .container-fluid) {
    background: transparent;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    margin: 0 auto;
}

.container {
    background: rgba(45, 45, 45, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    margin: 20px auto !important;
    max-width: 1200px;
    width: calc(100% - 40px);
    min-height: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 120, 212, 0.2);
    flex: 1;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
    color: var(--text-color);
    border-left: 4px solid var(--accent-color);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 120, 212, 0.15);
    border-left-color: var(--accent-light);
}

.card-header {
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--text-color);
    border-radius: 10px 10px 0 0;
    font-weight: 700;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.75rem;
    background: transparent;
    color: var(--text-color);
}

.card-title {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%) !important;
    min-height: 100vh;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

body > .container-fluid {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body > .container {
    flex: 1;
}
    padding: 0.75rem 0;
    flex-shrink: 0;
    width: 100%;
    position: relative;
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(0, 120, 212, 0.3));
    transition: filter 0.3s ease;
}

.navbar-brand:hover img {
    filter: drop-shadow(0 4px 10px rgba(0, 120, 212, 0.5));
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.navbar-toggler {
    border: 1px solid var(--accent-color);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 120, 212, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e0e0e0' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-size: contain;
}

.navbar-collapse {
    background: var(--primary-color);
    padding: 1rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.navbar-nav {
    display: flex;
    gap: 0;
    margin: 0;
    width: auto;
    margin-left: auto;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--text-color);
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.dropdown-item:hover {
    background: var(--tertiary-color);
    color: var(--accent-color);
}

@media (max-width: 991px) {
    .navbar-collapse {
        border-top: 1px solid var(--border-color);
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* ==================== CONTAINERS & CARDS ==================== */
.navbar .container-fluid {
    background: transparent;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    width: 100%;
}

.container-fluid:not(.navbar .container-fluid) {
    background: transparent;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    margin: 0 auto;
}

.container {
    background: var(--tertiary-color);
    border-radius: 12px;
    padding: 40px;
    margin: 20px auto;
    max-width: 1200px;
    width: calc(100% - 80px);
    min-height: calc(100vh - 300px);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    flex: 1;
}

.card {
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--accent-color) !important;
    background: var(--tertiary-color) !important;
    color: var(--text-color) !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow) !important;
}

.card-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%) !important;
    color: var(--text-color) !important;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    border: none !important;
}

.card-body {
    padding: 25px;
    background: var(--tertiary-color) !important;
    color: var(--text-color) !important;
}

/* ==================== BUTTONS ==================== */
.btn {
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(0, 120, 212, 0.25);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.4);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(58, 58, 58, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(58, 58, 58, 0.8);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-danger {
    background: linear-gradient(90deg, var(--danger-color), #e74856);
    color: white;
    box-shadow: 0 4px 15px rgba(209, 52, 56, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 52, 56, 0.4);
    color: white;
}

.btn-success {
    background: linear-gradient(90deg, var(--success-color), #107c10);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 124, 16, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 124, 16, 0.4);
    color: white;
}

.btn-warning {
    background: linear-gradient(90deg, var(--warning-color), #ffc200);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 185, 0, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 185, 0, 0.4);
    color: #000;
}

/* ==================== FORMS ==================== */
.form-control,
.form-select {
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus,
.form-select:focus {
    background: rgba(45, 45, 45, 0.95);
    border-color: var(--accent-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 120, 212, 0.25);
}

.form-check-input {
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.form-check-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 120, 212, 0.25);
}

/* ==================== ALERTS ==================== */
.alert {
    border-radius: 10px;
    border: 1px solid;
    padding: 1.2rem 1.5rem;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-info {
    background: rgba(0, 120, 212, 0.15);
    border-color: var(--accent-color);
    color: var(--accent-light);
}

.alert-success {
    background: rgba(16, 124, 16, 0.15);
    border-color: var(--success-color);
    color: #66b366;
}

.alert-danger {
    background: rgba(209, 52, 56, 0.15);
    border-color: var(--danger-color);
    color: #ff7a7d;
}

.alert-warning {
    background: rgba(255, 185, 0, 0.15);
    border-color: var(--warning-color);
    color: #ffcc33;
}

.btn-close {
    filter: invert(1) brightness(0.8);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
    filter: invert(1) brightness(1);
}

/* ==================== TABLES ==================== */
.table {
    color: var(--text-color);
    border-collapse: collapse;
    margin-top: 1rem;
}

.table thead th {
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--accent-light);
    border: none;
    font-weight: 700;
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody td {
    border-color: var(--border-color);
    padding: 1rem;
    vertical-align: middle;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(0, 120, 212, 0.1);
    box-shadow: inset 4px 0 0 var(--accent-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 120, 212, 0.1);
    color: var(--text-color);
}

/* ==================== MODALS ==================== */
.modal-content {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.2rem;
}

.modal-body {
    padding: 1.5rem;
    color: var(--text-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    background: rgba(45, 45, 45, 0.5);
}

.btn-close {
    filter: invert(1);
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

/* ==================== BADGES ==================== */
.badge {
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.badge.bg-primary {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light)) !important;
    color: white;
}

.badge.bg-success {
    background: linear-gradient(90deg, var(--success-color), #107c10) !important;
    color: white;
}

.badge.bg-danger {
    background: linear-gradient(90deg, var(--danger-color), #d13438) !important;
    color: white;
}

.badge.bg-warning {
    background: linear-gradient(90deg, var(--warning-color), #ffcc00) !important;
    color: #000;
}

/* ==================== TEXT & TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

h1 i {
    color: var(--accent-color);
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
}

h4 {
    font-size: 1.1rem;
}

p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* ==================== UTILITY CLASSES ==================== */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

.text-center { text-align: center !important; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--accent-color) !important; }
.text-white { color: white !important; }

.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.gap-2 { gap: 1rem !important; }

/* ==================== FOOTER ==================== */
footer {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
}

.footer {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    border-top: 2px solid var(--accent-color);
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.95) 0%, rgba(18, 18, 18, 0.95) 100%);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 20px rgba(0, 120, 212, 0.08);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.footer p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
}

.footer p:hover {
    color: var(--accent-light);
}

.footer a {
    color: var(--accent-color);
    transition: all 0.3s ease;
    font-weight: 600;
}

.footer a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* ==================== AUTHENTICATION PAGES ==================== */
.auth-container {
    max-width: 500px;
    margin: auto;
    padding: 0;
    width: 100%;
}

/* ==================== ADMIN PAGES ==================== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 120, 212, 0.15);
}

.stat-card h4 {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .container {
        padding: 25px;
        width: calc(100% - 50px);
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-brand img {
        height: 30px;
    }

    .container {
        border-radius: 12px;
        padding: 20px;
        width: calc(100% - 40px);
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem;
    }
}

/* ==================== LOGIN PAGE ==================== */
body.login-page {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

body.login-page::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 120, 212, 0.15) 0%, transparent 70%);
    animation: shine 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body.login-page::after {
    content: '';
    position: fixed;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 120, 212, 0.1) 0%, transparent 70%);
    animation: shine-reverse 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shine {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -30px); }
}

@keyframes shine-reverse {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

.login-page-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 120, 212, 0.3);
    border-radius: 16px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(0, 120, 212, 0.2);
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-align: center;
}

.auth-card .subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .form-group {
    margin-bottom: 1.5rem;
}

.auth-card .form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: block;
}

.auth-card .form-control {
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.auth-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0.75rem;
}

.auth-footer-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.auth-footer-link a {
    color: var(--accent-color);
    font-weight: 600;
}

.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: linear-gradient(to top, rgba(18, 18, 18, 0.95), transparent);
    pointer-events: none;
}

.login-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    pointer-events: auto;
}

.login-footer a:hover {
    text-decoration: underline;
}
    background: rgba(211, 52, 56, 0.2);
    color: #ff9999;
    border-color: var(--danger-color);
}

.alert-warning {
    background: rgba(255, 185, 0, 0.2);
    color: #ffd700;
    border-color: var(--warning-color);
}

.alert-info {
    background: rgba(0, 120, 212, 0.2);
    color: #66d7ff;
    border-color: var(--info-color);
}

/* ==================== TABLES ==================== */
.table {
    margin-bottom: 0;
    color: var(--text-color) !important;
    background: var(--tertiary-color) !important;
}

.table thead {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%) !important;
    color: var(--text-color);
}

.table th {
    border: none !important;
    font-weight: 700;
    padding: 15px;
    color: var(--text-color) !important;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%) !important;
}

.table tbody {
    background: var(--tertiary-color) !important;
}

.table td {
    border-color: var(--light-bg) !important;
    padding: 15px;
    vertical-align: middle;
    color: var(--text-color) !important;
    background: var(--tertiary-color) !important;
}

.table tbody tr:hover {
    background: var(--light-bg) !important;
    cursor: pointer;
}

/* ==================== MODALS ==================== */
.modal-content {
    border: 1px solid var(--border-color) !important;
    border-radius: 12px;
    box-shadow: var(--shadow) !important;
    background: var(--tertiary-color) !important;
    color: var(--text-color) !important;
}

.modal-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%) !important;
    color: var(--text-color) !important;
    border: none !important;
    border-radius: 12px 12px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0.8) invert(1);
}

.modal-title {
    font-weight: 700;
    color: var(--text-color) !important;
}

/* ==================== BADGES ==================== */
.badge {
    padding: 6px 12px;
    font-weight: 600;
    border-radius: 20px;
}

.badge-primary {
    background: var(--accent-color);
    color: white;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

/* ==================== TEXT & TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color) !important;
    font-weight: 700;
}

h1 {
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

a {
    color: var(--accent-color) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-light) !important;
    text-decoration: underline;
}

/* ==================== UTILITY CLASSES ==================== */
.bg-primary {
    background: var(--primary-color) !important;
}

.bg-secondary {
    background: var(--secondary-color) !important;
}

.bg-light {
    background: var(--light-bg) !important;
}

.text-primary {
    color: var(--accent-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-center {
    color: var(--text-color) !important;
}

.text-white {
    color: white !important;
}

.border-top {
    border-top: 3px solid var(--accent-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.rounded-custom {
    border-radius: 12px;
}

.opacity-75 {
    opacity: 0.75;
}

/* ==================== FOOTER ==================== */
footer {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
}

.footer {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    border-top: 2px solid var(--accent-color);
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 20px rgba(0, 120, 212, 0.1);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.footer p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.footer p:hover {
    color: var(--accent-light);
}

.footer a {
    color: var(--accent-color);
    transition: all 0.3s ease;
    font-weight: 600;
}

.footer a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* ==================== AUTHENTICATION PAGES ==================== */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
}

.auth-card {
    border-radius: 15px;
    border: none;
    overflow: hidden;
}

.auth-card .card-header {
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.login-form {
    padding: 40px;
}

/* ==================== ADMIN PAGES ==================== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--tertiary-color);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--accent-color);
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin: 10px 0;
    font-weight: 700;
}

.stat-card p {
    color: var(--text-muted);
    margin: 0;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* ==================== FILE BROWSER ==================== */
.file-list-item {
    padding: 15px;
    border-bottom: 1px solid var(--light-bg);
    transition: background 0.3s ease;
}

.file-list-item:hover {
    background: var(--light-bg);
}

.file-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .auth-container {
        margin-top: 30px;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .card {
        margin-bottom: 20px;
    }

    h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .container {
        border-radius: 8px;
        margin-top: 15px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .auth-container {
        width: 100%;
        max-width: 400px;
    }
}

/* ==================== AUTH PAGE LOGIN ==================== */
html.login-page body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 20px;
}

.auth-card {
    background: var(--tertiary-color) !important;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border-color) !important;
}

.auth-card .card-header {
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: white !important;
}

.login-form {
    padding: 40px;
    background: var(--tertiary-color) !important;
}

.login-form input {
    background: var(--secondary-color) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-color) !important;
}

.login-form input:focus {
    background: var(--secondary-color) !important;
    border: 1px solid var(--accent-color) !important;
    color: var(--text-color) !important;
}

.login-form label {
    color: var(--text-color) !important;
}

/* ==================== LOGIN PAGE ==================== */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 50%, #0a4a7a 100%);
    position: relative;
    overflow: hidden;
}

body.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 120, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

body.login-page::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 120, 212, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: var(--tertiary-color) !important;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 120, 212, 0.15);
    border-top: 3px solid var(--accent-color);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card .card-header {
    padding: 40px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    text-align: center;
    position: relative;
}

.auth-card .card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.auth-card .card-header img {
    filter: drop-shadow(0 4px 10px rgba(0, 120, 212, 0.3));
    transition: transform 0.3s ease;
}

.auth-card .card-header img:hover {
    transform: scale(1.05);
}

.auth-card .card-header h5 {
    color: var(--text-color);
    font-weight: 700;
    margin-top: 15px;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.auth-card .card-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    margin-top: 5px;
}

.login-form {
    padding: 35px 30px;
}

.login-form .alert {
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.login-form .form-control {
    background: var(--secondary-color) !important;
    border: 1.5px solid var(--border-color) !important;
    color: var(--text-color) !important;
    padding: 12px 15px !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    position: relative;
}

.login-form .form-control:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 120, 212, 0.25), inset 0 1px 2px rgba(0, 120, 212, 0.1) !important;
    background: var(--secondary-color) !important;
    color: var(--text-color) !important;
    transform: translateY(-2px);
}

.login-form .form-control::placeholder {
    color: var(--text-muted) !important;
}

.form-check {
    margin-bottom: 25px;
}

.login-form .form-check-input {
    background: var(--secondary-color) !important;
    border: 1.5px solid var(--border-color) !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.login-form .form-check-input:checked {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 10px rgba(0, 120, 212, 0.5) !important;
}

.form-check-label {
    color: var(--text-color);
    cursor: pointer;
    margin-left: 8px;
    user-select: none;
    font-size: 0.9rem;
}

.btn-login {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    border: none;
    color: white !important;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.4);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(-1px);
}

.divider {
    margin: 25px 0;
    position: relative;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.divider span {
    background: var(--tertiary-color);
    padding: 0 10px;
    position: relative;
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.login-footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* ==================== MACHINE QR LOGIN PAGE ==================== */
body.machine-qr-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 400px;
    width: 90%;
}

.machine-info {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.machine-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.machine-serial {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 10px 0 5px;
}

.machine-name {
    font-size: 16px;
    color: #666;
}

.login-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.info-text {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.login-button {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.security-notice {
    margin-top: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.security-notice strong {
    color: #333;
}

/* ==================== MACHINE DOCUMENTATION VIEW ==================== */
body.machine-view {
    background: #f5f5f5;
    color: #333;
}

.machine-view .header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.machine-view .header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.machine-view .machine-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.machine-view .machine-icon {
    font-size: 32px;
}

.machine-view .machine-details h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

.machine-view .machine-meta {
    font-size: 13px;
    opacity: 0.9;
}

.machine-view .user-info {
    text-align: right;
    font-size: 14px;
}

.machine-view .container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.machine-info-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.info-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.info-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.files-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-count {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.files-list {
    list-style: none;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.file-item:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateX(4px);
}

.file-icon {
    font-size: 24px;
    margin-right: 12px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.file-meta {
    font-size: 12px;
    color: #666;
}

.file-permissions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.permission-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.permission-public {
    background: #d4edda;
    color: #155724;
}

.permission-restricted {
    background: #fff3cd;
    color: #856404;
}

.permission-confidential {
    background: #f8d7da;
    color: #721c24;
}

.edit-badge {
    background: #cfe2ff;
    color: #084298;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.machine-view .btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.machine-view .btn-primary {
    background: #667eea;
    color: white;
}

.machine-view .btn-primary:hover {
    background: #5568d3;
}

.machine-view .btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.machine-view .btn-secondary:hover {
    background: #d0d0d0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .machine-view .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .machine-view .user-info {
        text-align: left;
        width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}
