:root {
    --primary: #1E3A8A;
    --secondary: #60A5FA;
    --accent: #7C3AED;
    --background: #F8FAFC;
    --text: #1F2937;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

.card {
    background: #FFFFFF;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    width: 95%;
    min-height: 90vh;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 0.5rem;
    margin: 0;
    border-radius: 1rem 1rem 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body {
    padding: 1.5rem;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.instruction {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-back {
    background: transparent;
    color: white;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.form-control {
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
    outline: none;
}

.input-group-text {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
    padding: 0.75rem;
}

.required-field::after {
    content: '*';
    color: #EF4444;
    margin-left: 0.3rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 0.5rem;
    overflow: hidden;
}

.table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem;
}

.table td {
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
}

.table tr:hover {
    background: #F3F4F6;
}

.alert {
    position: fixed;
    top: 1rem;
    right: 1rem;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1000;
}

.alert.show {
    opacity: 1;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
}

.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.list-disc {
    list-style-type: disc;
    padding-left: 1.5rem;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(124, 58, 237, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    overflow: auto;
    transition: all 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 0.5rem;
    width: 70%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease;
}

.modal-content:hover {
    transform: scale(1.02);
}

.modal-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.modal-body {
    padding: 1rem;
}

@media (max-width: 576px) {
    .card {
        width: 95%;
        min-height: 90vh;
        padding: 0;
    }
    .card-header {
        padding: 0.75rem 0.5rem;
    }
    .card-body {
        padding: 1rem;
    }
    h1 {
        font-size: 1.5rem;
    }
    .text-xl {
        font-size: 1.25rem;
    }
    .instruction {
        font-size: 0.9rem;
    }
    .btn-primary, .btn-outline {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .btn-outline {
        margin-bottom: 0.5rem;
    }
    .btn-back {
        font-size: 0.9rem;
        padding: 0.4rem;
    }
    .form-control, .input-group-text {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    .table th, .table td {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    .table td:has(.btn-outline) {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .alert {
        font-size: 0.85rem;
        width: 90%;
        right: 5%;
    }
    .modal-content {
        width: 90%;
        max-width: 95%;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .card {
        width: 90%;
        min-height: 85vh;
    }
    .card-header {
        padding: 1rem 0.5rem;
    }
    .card-body {
        padding: 1.25rem;
    }
    h1 {
        font-size: 1.75rem;
    }
    .text-xl {
        font-size: 1.4rem;
    }
    .instruction {
        font-size: 0.95rem;
    }
    .btn-primary, .btn-outline {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    .btn-outline {
        margin-bottom: 0.5rem;
    }
    .btn-back {
        font-size: 1rem;
        padding: 0.5rem;
    }
    .form-control, .input-group-text {
        font-size: 0.95rem;
        padding: 0.6rem;
    }
    .table th, .table td {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    .table td:has(.btn-outline) {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .alert {
        font-size: 0.9rem;
    }
    .modal-content {
        width: 80%;
        max-width: 90%;
    }
}

@media (min-width: 769px) {
    .card {
        width: 80%;
        min-height: 80vh;
        padding-left: 0;
    }
    .card-header {
        padding: 1rem 0.5rem;
    }
    .card-body {
        padding: 1.5rem;
    }
    h1 {
        font-size: 2rem;
    }
    .text-xl {
        font-size: 1.5rem;
    }
    .instruction {
        font-size: 1rem;
    }
    .btn-primary, .btn-outline {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    .btn-back {
        font-size: 1rem;
        padding: 0.5rem;
    }
    .form-control, .input-group-text {
        font-size: 1rem;
        padding: .75rem;
    }
    .table th, .table td {
        font-size: 0.95rem;
        padding: 0.75rem;
    }
    .alert {
        font-size: 0.95rem;
    }
    .modal-content {
        width: 70%;
        max-width: 1000px;
    }
}