﻿/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 80%;
    margin: auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
}

h2 {
    text-align: left;
    margin-bottom: 20px;
    background-color: #C9B194; /* Light blue background */
    padding: 15px;
    border-radius: 8px;
    color: #EBEBEB;
    font-family: sans-serif;
    font-weight: bold;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap; /* Allow fields to wrap */
}

    .form-group div {
        flex: 1 1 calc(50% - 10px); /* Two fields side by side */
    }

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .form-group input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
    }

.form-group-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

button {
    padding: 9px 24px;
    margin: 0 5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 600;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    transition: background .15s;
}

.save-button {
    background: #244123;
    color: #fff;
}

    .save-button:hover {
        background: #1a2e1a;
        color: #fff;
    }

.delete-button {
    background: #dc2626;
    color: #fff;
}

    .delete-button:hover {
        background: #b91c1c;
        color: #fff;
    }

.clear-button {
    background: #fff;
    color: #244123;
    border: 1.5px solid #c8d9c7;
}

    .clear-button:hover {
        background: #f0f7f0;
    }

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

/* Header Styling */
thead {
    background-color: #ccc; /* Yellow header */
    color: #333;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:nth-child(odd) {
    background-color: #fff;
}

/* Hover effect */
tbody tr:hover {
    background-color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .form-group input {
        font-size: 12px;
        padding: 8px;
    }

    button {
        padding: 8px 12px;
        font-size: 12px;
    }

    table th, table td {
        font-size: 12px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 18px;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-group input {
        font-size: 12px;
    }

    button {
        padding: 6px 10px;
        font-size: 12px;
    }

    table th, table td {
        font-size: 10px;
        padding: 6px;
    }
}

/* Collapsible Section */
.collapsible {
    background-color: var(--gray-100) !important;
    color: var(--gray-700) !important;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    text-align: right; /* Right align the title */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .collapsible.active, .collapsible:hover {
        background-color: #d6b8cf;
    }

    .collapsible i {
        font-size: 20px;
    }

.content {
    padding: 0 18px;
    display: block; /* Open by default */
    overflow: hidden;
    background-color: white;
}

    .content table {
        width: 100%;
        margin-top: 10px;
    }

/* Edit Icon */
.edit-icon {
    cursor: pointer;
    color: #4CAF50;
    font-size: 18px;
}

.Namefourth label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.Namefourth label {
    font-size: 0.875rem;
    line-height: 1;
    vertical-align: top;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}