* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Login Screen */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-container h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.login-container h2 {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

#login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

#login-form button {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#login-form button:hover {
    background: #2980b9;
}

.error {
    color: #e74c3c;
    margin-top: 10px;
    text-align: center;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #7f8c8d;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

.nav-link.active {
    background: #3498db;
    color: white;
}

.btn-logout {
    padding: 8px 16px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #c0392b;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 30px;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

h1 {
    margin-bottom: 30px;
    color: #2c3e50;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card h3 {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Actions */
.actions {
    margin-bottom: 20px;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Section */
.section {
    margin-bottom: 40px;
}

.section h2 {
    margin-bottom: 15px;
    color: #34495e;
}

/* Users List */
.users-list {
    display: grid;
    gap: 15px;
}

.user-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info h3 {
    margin-bottom: 5px;
}

.user-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-pending { background: #f39c12; color: white; }
.badge-approved { background: #27ae60; color: white; }
.badge-suspended { background: #e74c3c; color: white; }

.btn-approve, .btn-suspend {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 10px;
}

.btn-approve {
    background: #27ae60;
    color: white;
}

.btn-suspend {
    background: #e74c3c;
    color: white;
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    gap: 20px;
}

.inventory-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.inventory-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.inventory-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.inventory-item:last-child {
    border-bottom: none;
}

/* Filters */
.filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.filters input {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
}

/* Audit List */
.audit-list, .discrepancies-list {
    display: grid;
    gap: 15px;
}

.audit-item, .discrepancy-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.audit-item h4, .discrepancy-item h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.audit-item p, .discrepancy-item p {
    margin-bottom: 5px;
    color: #7f8c8d;
}

.chain-valid {
    color: #27ae60;
    font-weight: bold;
}

.chain-invalid {
    color: #e74c3c;
    font-weight: bold;
}
