/*style.css*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка */
header {
    background: white;
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

@media (min-width: 768px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

h1 {
    color: #667eea;
    font-size: 28px;
}

.subtitle {
    color: #666;
    margin-top: 5px;
}

/* Кнопки */
.button {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}

.button:hover {
    background: #5a67d8;
}

.register-btn {
    background: #48bb78;
    margin-bottom: 20px;
    display: inline-block;
    width: auto;
    padding: 12px 30px;
}

.register-btn:hover {
    background: #38a169;
}

/* Карточки мастеров */
.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.master-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.master-card:hover {
    transform: translateY(-5px);
}

.master-avatar {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

.master-info {
    padding: 20px;
}

.master-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.master-category {
    color: #667eea;
    font-size: 14px;
    margin-bottom: 10px;
}

.master-details {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 10px;
}

.status.free {
    background: #d4edda;
    color: #155724;
}

.status.busy {
    background: #f8d7da;
    color: #721c24;
}

.empty-state {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 15px;
    color: #666;
}

/* Подвал */
footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    opacity: 0.8;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Иконки в шапке */
.header-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
    flex-shrink: 0;
}

.header-icon-blue {
    background: #667eea;
}

.header-icon-green {
    background: #48bb78;
}

.header-icon-red {
    background: #e53e3e;
}

.header-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
}

.header-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}


/* ========== ДОПОЛНИТЕЛЬНЫЕ ГЛОБАЛЬНЫЕ СТИЛИ ========== */

/* Для всех input, select, textarea */
input, select, textarea {
    font-family: inherit;
}

/* Для disabled select */
select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Для всех чекбоксов */
input[type="checkbox"] {
    cursor: pointer;
}

/* Ссылки в подвале */
footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}