/* style.css - Complete CSS file */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}

body {
    background: #eef5ff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 16px;
}

.app-wrapper {
    max-width: 1100px;
    width: 100%;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 40, 80, 0.15);
    padding: 24px;
    margin-top: 20px;
}

/* Blue-White Theme */
.btn-primary-custom {
    background: #1a6fb0;
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 500;
    transition: 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(20, 80, 140, 0.2);
    font-size: 1rem;
}

.btn-primary-custom:hover {
    background: #0f5a94;
    transform: scale(1.02);
}

.btn-outline-primary {
    background: transparent;
    border: 1.5px solid #1a6fb0;
    color: #1a6fb0;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-outline-primary:hover {
    background: #dceaff;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(0, 30, 60, 0.06);
    border: 1px solid #d8e8fa;
    margin-bottom: 24px;
}

.card-header {
    font-weight: 600;
    font-size: 1.2rem;
    color: #0a3a5e;
    border-bottom: 2px solid #d8e8fa;
    padding-bottom: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 680px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 16px;
}

label {
    font-weight: 500;
    color: #1f4e77;
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 20px;
    border: 1.5px solid #d4e2f5;
    background: #fafcff;
    font-size: 0.95rem;
    transition: 0.15s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #1a6fb0;
    box-shadow: 0 0 0 3px rgba(26, 111, 176, 0.2);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

select[multiple] {
    height: auto;
    min-height: 100px;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 16px;
    border-radius: 20px;
    border: 1px solid #d8e8fa;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th {
    background: #e4effa;
    color: #0a3a5e;
    padding: 14px 10px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid #e9f0f8;
}

.dashboard-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}

.dashboard-menu button {
    background: white;
    border: 1.5px solid #c4d9ef;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 500;
    color: #0a3a5e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    cursor: pointer;
    transition: 0.2s;
    flex: 1 0 auto;
    max-width: 180px;
    font-size: 0.95rem;
}

.dashboard-menu button.active {
    background: #1a6fb0;
    color: white;
    border-color: #1a6fb0;
    box-shadow: 0 6px 12px rgba(26,111,176,0.25);
}

.dashboard-menu button:hover:not(.active) {
    background: #f0f7ff;
    border-color: #1a6fb0;
}

.login-box {
    max-width: 420px;
    margin: 20px auto;
    padding: 35px;
    background: white;
    border-radius: 40px;
    box-shadow: 0 12px 30px rgba(0,30,60,0.08);
}

.login-box h2 {
    color: #0a3a5e;
}

.text-center {
    text-align: center;
}

.history-log {
    background: #f4faff;
    border-radius: 16px;
    padding: 12px;
    font-size: 0.85rem;
    max-height: 150px;
    overflow-y: auto;
    margin-top: 8px;
}

.history-log div {
    padding: 4px 0;
    border-bottom: 1px solid #e9f0f8;
}

.history-log div:last-child {
    border-bottom: none;
}

.tag {
    background: #dceaff;
    border-radius: 40px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: #0a3a5e;
    display: inline-block;
}

small {
    display: block;
    margin-top: 4px;
    color: #888;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .app-wrapper {
        padding: 14px;
        margin-top: 10px;
        border-radius: 20px;
    }
    .card {
        padding: 16px;
    }
    .dashboard-menu button {
        max-width: 100%;
        flex: 1 1 100%;
        padding: 10px;
        font-size: 0.9rem;
    }
    .login-box {
        padding: 20px;
        margin: 10px auto;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero-icons i {
        font-size: 2.5rem;
    }
    th, td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    input, select, textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    .btn-primary-custom {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        gap: 14px;
    }
}