@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

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

html, body, input, select, textarea, button {
    font-family: 'Prompt', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #f1f5f9;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.55;
}

b, strong {
    font-weight: 500 !important;
}

/* --- Main Layout --- */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: #0f172a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
}

.sidebar-brand {
    padding: 20px 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #38bdf8;
    border-bottom: 1px solid #1e293b;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 4px;
}

.sidebar-nav a {
    color: #94a3b8;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    background-color: #1e293b;
    color: #ffffff;
}

/* Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: #f8fafc;
}

.top-header {
    background-color: #ffffff;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.content-body {
    padding: 25px;
    flex: 1;
}

.main-footer {
    padding: 15px 25px;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* --- Components --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card h3 {
    margin-bottom: 10px;
    color: #0f172a;
}

.stat {
    font-size: 1.75rem;
    font-weight: bold;
    color: #0284c7;
    margin: 10px 0;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0284c7;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
}

.menu-toggle {
    display: none;
}

/* --- Responsive (Mobile / Small Window) --- */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
        width: 100%;
        padding: 12px;
        background-color: #0f172a;
        color: #ffffff;
        border: none;
        text-align: left;
        font-size: 1rem;
        cursor: pointer;
    }

    .sidebar {
        display: none;
        width: 100%;
    }

    .sidebar.active {
        display: flex;
    }

    .top-header {
        padding: 15px;
    }

    .content-body {
        padding: 15px;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}