body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background-color: #007bff; /* To'q ko'k/kulrang */
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.panel {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

h2 {
    color: #34495e;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

/* 1. Nogironlik Ma'lumotlari */
.disability-info {
    border-left: 5px solid #3498db;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-grid > div {
    padding: 10px;
    background-color: #f7f9fc;
    border-radius: 5px;
}

.info-grid p {
    margin: 0;
    font-size: 0.9em;
    color: #7f8c8d;
}

.info-grid strong {
    display: block;
    margin-top: 5px;
    font-size: 1.1em;
    color: #2c3e50;
}

.group-highlight {
    color: #e74c3c; /* Qizil/To'q sariq */
    font-weight: bold;
}

.expiry-date {
    color: #f39c12; /* Sariq */
    font-weight: bold;
}

.note {
    margin-top: 20px;
    padding: 10px;
    background-color: #fcf8e3;
    color: #8a6d3b;
    border: 1px solid #faebcc;
    border-radius: 5px;
    font-size: 0.9em;
}

.note i {
    margin-right: 5px;
}

/* 2. Oila Jadvali */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table thead {
    background-color: #ecf0f1;
    color: #2c3e50;
    text-align: left;
}

table th, table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 0.95em;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.disability-yes {
    color: #e74c3c;
    font-weight: bold;
}

.disability-no {
    color: #27ae60;
}

/* Qo'shish tugmasi */
#add-member-btn {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
}

#add-member-btn:hover {
    background-color: #2980b9;
}

/* Modal uslublari */
.modal {
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    margin-left: 10px;
    margin-bottom: 0;
    font-weight: normal;
}

.save-btn {
    width: 100%;
    padding: 12px;
    background-color: #27ae60; /* Yashil tugma */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

/* Responsive dizayn */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #555;
    }
}