:root {
    --bg: #0d1117;
    --card: #161b22;
    --text: #c9d1d9;
    --accent: #1f6feb;
    --border: #30363d;
    --success: #2ea043;
    --danger: #f85149;
    --warn: #d29922;
    --shadow: 0 4px 12px rgba(0,0,0,0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    background: var(--card);
    color: var(--accent);
}

.page {
    display: none;
    animation: fadeIn 0.3s;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    color: var(--accent);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.stat-card p {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
}

.alerts {
    background: var(--card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.alerts h3 {
    margin-bottom: 15px;
}

.alerts ul {
    list-style: none;
}

.alerts li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.actions input {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

table th, table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table th {
    background: var(--bg);
    color: var(--accent);
    font-weight: 600;
}

table img {
    height: 40px;
    border-radius: 5px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.badge.active {
    background: #0a3020;
    color: var(--success);
}

.badge.expired {
    background: #330a0a;
    color: var(--danger);
}

.badge.due {
    background: #33220a;
    color: var(--warn);
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn.outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.fab:hover {
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    animation: modalFadeIn 0.3s;
}

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

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card);
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow);
    animation: modalSlideIn 0.3s;
}

@keyframes modalSlideIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}

.report {
    background: var(--card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .stats {
        grid-template-columns: 1fr;
    }
    .actions {
        flex-direction: column;
        align-items: stretch;
    }
    table {
        font-size: 0.8rem;
    }
    table th, table td {
        padding: 10px;
    }
}