:root {
    --sidebar-width: 250px;
    --primary: #e65100;
    --primary-light: #ff833a;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f5f5;
    margin: 0;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform .3s;
    display: flex;
    flex-direction: column;
}

.sidebar .nav-link {
    padding: .6rem 1rem;
    margin-bottom: 2px;
    font-size: .9rem;
    transition: all .2s;
}

.sidebar .nav-link:hover {
    background: rgba(255,255,255,.1);
    border-radius: .375rem;
}

.sidebar .nav-link.active {
    font-weight: 600;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left .3s;
}

.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: all .2s;
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212121;
}

.stat-card .stat-label {
    font-size: .8rem;
    color: #757575;
    font-weight: 500;
}

.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    overflow: hidden;
}

.table-container .table {
    margin-bottom: 0;
}

.table-container .table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #616161;
    border-bottom: 2px solid #e0e0e0;
    padding: .75rem 1rem;
}

.table-container .table td {
    vertical-align: middle;
    padding: .75rem 1rem;
    font-size: .9rem;
}

.table-img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    padding: 1.5rem;
}

.lang-tab {
    cursor: pointer;
    padding: .5rem 1rem;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: .375rem .375rem 0 0;
    font-size: .85rem;
    background: #f8f9fa;
    display: inline-block;
    margin-right: 2px;
}

.lang-tab.active {
    background: white;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
    font-weight: 600;
    color: var(--primary);
}

.qr-card {
    text-align: center;
    padding: 1.5rem;
}

.qr-card img {
    max-width: 200px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 0 1rem;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 2.5rem;
    text-align: center;
}

.login-card h3 {
    font-weight: 700;
    margin-bottom: .5rem;
}

.login-card .login-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
