﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #f5f7fb;
}

/* ----- HEADER & LAYOUT ----- */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(120deg, #007bff, #00c6ff);
    color: white;
    padding: 10px 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.logo {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.top-nav .nav-link {
    color: #eaf6ff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.95rem;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

    .top-nav .nav-link:hover {
        border-bottom-color: #ffffff;
        color: #ffffff;
    }

.main-container {
    max-width: 1100px;
    margin: 25px auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px 30px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* ----- BUTTONS / TOOLBAR ----- */

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

    .search-bar label {
        font-size: 0.9rem;
    }

    .search-bar input[type="text"],
    .search-bar select {
        padding: 6px 8px;
        border-radius: 6px;
        border: 1px solid #cbd5e1;
        font-size: 0.9rem;
    }

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}

    .btn-primary:hover {
        background: #005fcc;
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
        transform: translateY(-1px);
    }

.btn-outline {
    background: white;
    color: #007bff;
    border: 1px solid #007bff;
}

    .btn-outline:hover {
        background: #e6f0ff;
    }

/* ----- DASHBOARD CARDS ----- */

.cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.card {
    flex: 1 1 180px;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f9fafb, #edf2ff);
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(148, 163, 184, 0.25);
}

.card-title {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
}

/* ----- GRIDVIEW ----- */

.table-wrapper {
    margin-top: 15px;
    overflow-x: auto;
}

.gridview {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .gridview th,
    .gridview td {
        padding: 8px 10px;
        border-bottom: 1px solid #e5e7eb;
        text-align: left;
    }

    .gridview th {
        background: #f3f4f6;
        font-weight: 600;
    }

    .gridview tr:hover {
        background: #f9fafb;
    }

/* ----- FORM ----- */

.form-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 20px 24px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.form-row {
    margin-bottom: 10px;
}

    .form-row label {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 4px;
        color: #4b5563;
    }

    .form-row input[type="text"],
    .form-row input[type="date"],
    .form-row select {
        width: 100%;
        padding: 6px 8px;
        border-radius: 6px;
        border: 1px solid #cbd5e1;
        font-size: 0.9rem;
    }

/* ----- DETAIL PANEL ----- */

.detail-panel {
    margin-top: 20px;
    padding: 15px 18px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.detail-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.detail-row {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.detail-label {
    font-weight: 600;
    color: #4b5563;
}

.detail-value {
    color: #111827;
}

.message {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #dc2626;
}

/* ----- RESPONSIVE ----- */

@media (max-width: 768px) {
    .main-container {
        margin: 10px;
        padding: 15px 16px;
    }

    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
