/* Основные стили */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

h2 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Секции профиля */
.profile-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Формы и поля ввода */
input[type="text"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Кнопки */
button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.save-btn {
    background-color: #2ecc71;
    width: 100%;
    margin-top: 20px;
}

.save-btn:hover {
    background-color: #27ae60;
}

.top-up-btn {
    background-color: #f39c12;
    margin-top: 10px;
}

.top-up-btn:hover {
    background-color: #d35400;
}

/* Поиск врачей */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-select {
    flex: 1;
}

.search-btn {
    background-color: #3498db;
}

/* Статус */
.status {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    border-radius: 5px;
}

/* Ссылки */
.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #3498db;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
}

/* Загрузка файлов */
input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px dashed #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Список документов */
#documents-list {
    margin-top: 10px;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 5px;
}

.document-item button {
    background-color: #e74c3c;
    padding: 5px 10px;
    font-size: 14px;
}

.document-item button:hover {
    background-color: #c0392b;
}

/* Форма оплаты */
#payment-form {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

#payment-form input[type="number"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

#payment-form p {
    margin: 5px 0;
    color: #666;
}

#payment-form .top-up-btn {
    margin-top: 15px;
    background-color: #2ecc71;
}

#payment-form .top-up-btn:hover {
    background-color: #27ae60;
}

.specializations-list {
    margin: 20px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.specializations-list h3 {
    margin-bottom: 10px;
    color: #333;
}

.specializations-list ul {
    list-style: none;
    padding: 0;
}

.specializations-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 5px 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.remove-spec {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.remove-spec:hover {
    color: #cc0000;
}

.add-specialization {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.add-specialization select {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-specialization button {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-specialization button:hover {
    background-color: #45a049;
}

.timeslot-form {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.timeslot-form input,
.timeslot-form select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.timeslot-form button {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.timeslot-form button:hover {
    background-color: #45a049;
}

.timeslot-date-section {
    margin-bottom: 20px;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
}

.timeslot-date-section h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.timeslots-for-date {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.timeslot-item {
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeslot-item.booked {
    background-color: #f8f8f8;
    opacity: 0.8;
}

.timeslot-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.timeslot-info .time {
    font-weight: bold;
    font-size: 16px;
}

.timeslot-info .type {
    color: #666;
    font-size: 14px;
}

.timeslot-info .status {
    font-size: 12px;
    color: #666;
}

.delete-slot {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.delete-slot:hover {
    color: #cc0000;
}

.book-slot {
    padding: 5px 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.book-slot:hover {
    background-color: #2980b9;
}

@media (max-width: 600px) {
    .timeslot-form {
        flex-direction: column;
    }
    
    .timeslot-form input,
    .timeslot-form select,
    .timeslot-form button {
        width: 100%;
    }
    
    .timeslots-for-date {
        grid-template-columns: 1fr;
    }
}

.profile-btn {
    display: block;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.profile-btn:hover {
    background-color: #2980b9;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 14px;
    color: #333;
}