/* ============================================
   BOON.SUPPORT - COMMON STYLESHEET
   Color Palette:
   - Primary: #ccf5ac
   - Secondary: #b3cc96
   - Tertiary: #808a9f
   - Dark: #2c497f
   - Darkest: #3d2b56
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #808a9f;
    line-height: 1.6;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
    color: #3d2b56;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

h2 {
    color: #2c497f;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

h3 {
    color: #2c497f;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

h4 {
    color: #3d2b56;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

p, label, span, li {
    color: #808a9f;
    font-size: 1rem;
}

a {
    color: #2c497f;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ccf5ac;
    text-decoration: underline;
}

/* ============================================
   BUTTONS
   ============================================ */

button, .btn, input[type="submit"], input[type="button"] {
    background-color: #2c497f;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}

button:hover, .btn:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: #3d2b56;
    box-shadow: 0 4px 8px rgba(45, 75, 127, 0.3);
    transform: translateY(-2px);
}

button:disabled, input[type="submit"]:disabled, input[type="button"]:disabled {
    background-color: #b3cc96;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background-color: #b3cc96;
    color: #3d2b56;
}

.btn-secondary:hover {
    background-color: #808a9f;
    color: #ffffff;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-copy {
    background-color: #ccf5ac;
    color: #2c497f;
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 3px;
}

.btn-copy:hover {
    background-color: #b3cc96;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0 16px 0;
    border: 2px solid #b3cc96;
    border-radius: 5px;
    font-size: 1rem;
    color: #3d2b56;
    background-color: #ffffff;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2c497f;
    box-shadow: 0 0 5px rgba(44, 73, 127, 0.3);
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
textarea:disabled,
select:disabled {
    background-color: #f5f5f5;
    color: #b3cc96;
    cursor: not-allowed;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c497f;
}

/* ============================================
   CONTAINERS & LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(45, 75, 127, 0.1);
    margin-bottom: 20px;
    border-left: 5px solid #2c497f;
}

.card-header {
    background-color: #2c497f;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    margin: -30px -30px 20px -30px;
}

.card h2 {
    color: #ffffff;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background: linear-gradient(135deg, #3d2b56 0%, #2c497f 100%);
    color: #ccf5ac;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ccf5ac;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: #b3cc96;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #ccf5ac;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* ============================================
   MODALS & POPUPS
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #b3cc96;
    padding-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #2c497f;
    cursor: pointer;
    padding: 0;
}

.close-btn:hover {
    color: #3d2b56;
}

/* ============================================
   TABLES
   ============================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #ffffff;
}

table thead {
    background-color: #2c497f;
    color: #ccf5ac;
}

table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #b3cc96;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

table tbody tr {
    transition: background-color 0.3s ease;
}

table tbody tr:hover {
    background-color: #f9f9f9;
}

table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 5px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #ccf5ac;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: #b3cc96;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

/* ============================================
   SECTION COLLAPSIBLE
   ============================================ */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    border: 2px solid #b3cc96;
    padding: 15px;
    cursor: pointer;
    border-radius: 5px;
    margin: 20px 0 0 0;
    transition: all 0.3s ease;
}

.section-header:hover {
    background-color: #f0f0f0;
}

.section-header h3 {
    margin: 0;
}

.section-toggle {
    font-size: 1.2rem;
    color: #2c497f;
    transition: transform 0.3s ease;
}

.section-toggle.expanded {
    transform: rotate(180deg);
}

.section-content {
    display: none;
    padding: 20px;
    border: 2px solid #b3cc96;
    border-top: none;
    background-color: #ffffff;
}

.section-content.show {
    display: block;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .container {
        padding: 0 15px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    button, .btn {
        width: 100%;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
}
