/* ===== ПРОФИЛЬ ===== */
.profile-page {
    background: #F5CDD3;
    min-height: 100vh;
    padding: 100px 0 60px;
}

/* ===== КНОПКИ АВТОРИЗАЦИИ ===== */
.auth-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.auth-btn {
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 20px;
    font-family: "Coolvetica", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.5px;
    box-shadow: 0px 3px 8px 0px rgba(105, 49, 63, 0.3);
}

.login-btn {
    background: white;
    color: #AA4E65;
    border: 2px solid #AA4E65;
}

.login-btn:hover {
    transform: scale(1.05);
    background: #AA4E65;
    color: white;
    box-shadow: 0 5px 12px rgba(170, 78, 101, 0.4);
}

.register-btn {
    background: white;
    color: #AA4E65;
    border: 2px solid #AA4E65;
}

.register-btn:hover {
    transform: scale(1.05);
    background: #AA4E65;
    color: white;
    box-shadow: 0 5px 12px rgba(170, 78, 101, 0.4);
}

.auth-btn:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .auth-btn {
        padding: 10px 30px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .auth-btn {
        padding: 8px 25px;
        font-size: 16px;
    }
    .auth-buttons {
        gap: 15px;
    }
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.profile-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(170, 78, 101, 0.15);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

/* ===== САЙДБАР ===== */
.profile-sidebar {
    width: 320px;
    background: linear-gradient(135deg, #AA4E65 0%, #8a3e52 100%);
    padding: 40px 0;
}

.profile-avatar {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    margin-bottom: 25px;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
    margin-bottom: 20px;
}

.profile-avatar h3 {
    font-family: "Czizh", cursive;
    font-size: 26px;
    color: white;
    margin: 0 0 10px;
    font-weight: normal;
    letter-spacing: 0.5px;
}

.profile-username {
    font-family: "Coolvetica", sans-serif;
    font-size: 20px;
    font-weight: normal;
    color: white;
    margin: 0;
    letter-spacing: 0.5px;
}

.profile-email {
    font-family: "Coolvetica", sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* ===== НАВИГАЦИЯ ===== */
.profile-nav {
    display: flex;
    flex-direction: column;
}

.profile-nav a {
    padding: 16px 30px;
    color: white;
    text-decoration: none;
    font-family: "Coolvetica", sans-serif;
    font-size: 18px;
    font-weight: normal;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    letter-spacing: 0.5px;
}

.profile-nav a:hover,
.profile-nav a.active {
    background: rgba(255,255,255,0.2);
    border-left-color: white;
}

.logout-link {
    margin-top: 30px;
    border-top: 2px solid rgba(255,255,255,0.2);
    padding-top: 20px;
}

.moderator-link, .admin-link, .doctor-link {
    margin-top: 10px;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.profile-content {
    flex: 1;
    padding: 40px 50px;
    background: white;
}

.profile-tab {
    display: none;
}

.profile-tab.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-tab h2 {
    font-family: "Czizh", cursive;
    color: #AA4E65;
    font-size: 36px;
    font-weight: normal;
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 3px solid #F5CDD3;
    letter-spacing: 0.5px;
}

/* ===== КАРТОЧКА ИНФОРМАЦИИ ===== */
.info-card {
    background: #fef8f6;
    border-radius: 24px;
    padding: 35px;
    border: 1px solid #F5CDD3;
}

.info-row {
    display: flex;
    padding: 18px 0;
    border-bottom: 1px solid #F0E0DC;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 160px;
    font-family: "Coolvetica", sans-serif;
    font-weight: normal;
    color: #AA4E65;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.info-value {
    flex: 1;
    font-family: "Coolvetica", sans-serif;
    font-weight: normal;
    color: #3a2a2a;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.edit-profile-btn {
    margin-top: 30px;
    background: white;
    border: 2px solid #AA4E65;
    color: #AA4E65;
    padding: 14px 35px;
    border-radius: 50px;
    font-family: "Coolvetica", sans-serif;
    font-size: 18px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.edit-profile-btn:hover {
    background: #AA4E65;
    color: white;
}

/* ===== ПИТОМЦЫ ===== */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.pet-card {
    background: white;
    border: 2px solid #F5CDD3;
    border-radius: 24px;
    padding: 25px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(170, 78, 101, 0.2);
}

.pet-name {
    font-family: "Czizh", cursive;
    font-size: 28px;
    font-weight: normal;
    color: #AA4E65;
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: 0.5px;
}

.pet-info {
    margin: 18px 0;
    flex: 1;
}

.pet-info p {
    font-family: "Coolvetica", sans-serif;
    font-size: 16px;
    font-weight: normal;
    color: #5a4a4a;
    margin: 10px 0;
    letter-spacing: 0.5px;
}

.pet-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #F5CDD3;
}

.pet-actions button {
    flex: 1;
    padding: 10px;
    border: 2px solid #AA4E65;
    border-radius: 12px;
    background: white;
    color: #AA4E65;
    font-family: "Coolvetica", sans-serif;
    font-size: 15px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.pet-actions button:hover {
    background: #AA4E65;
    color: white;
}

.add-pet-card {
    background: #fef8f6;
    border: 3px dashed #F5CDD3;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    cursor: pointer;
    transition: all 0.3s;
}

.add-pet-card:hover {
    background: #F5CDD3;
    border-color: #AA4E65;
}

.add-pet-card .plus-icon {
    font-size: 60px;
    color: #AA4E65;
    margin-bottom: 18px;
}

.add-pet-card p {
    font-family: "Coolvetica", sans-serif;
    font-size: 18px;
    font-weight: normal;
    color: #AA4E65;
    letter-spacing: 0.5px;
}

/* ===== ИСТОРИЯ ПОСЕЩЕНИЙ ===== */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    border: 1px solid #F0E0DC;
}

.history-item:hover {
    box-shadow: 0 4px 16px rgba(170, 78, 101, 0.12);
    transform: translateY(-2px);
}

.history-date-bar {
    background: #AA4E65;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.history-date-bar .date {
    font-family: "Coolvetica", sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.history-date-bar .time {
    font-family: "Coolvetica", sans-serif;
    font-size: 14px;
    opacity: 0.9;
}

.history-content {
    padding: 20px;
}

.history-service {
    font-family: "Coolvetica", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #AA4E65;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

.history-pet {
    font-family: "Coolvetica", sans-serif;
    font-size: 15px;
    color: #5B2B37;
    margin: 0 0 8px 0;
}

.history-pet span {
    color: #AA4E65;
    font-weight: 500;
}

.history-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: "Coolvetica", sans-serif;
    font-size: 12px;
    margin-top: 8px;
}

.history-status.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.history-status.cancelled {
    background: #ffebee;
    color: #c62828;
}

.history-status.pending {
    background: #fff8e1;
    color: #f57f17;
}

.history-status.in_progress {
    background: #e3f2fd;
    color: #1565c0;
}

.empty-history {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    color: #AA4E65;
    font-family: "Coolvetica", sans-serif;
    border: 2px dashed #F5CDD3;
}

/* ===== ЗАКЛЮЧЕНИЕ ВРАЧА ===== */
.medical-details {
    margin-top: 16px;
    background: #fef8f6;
    border-radius: 16px;
    overflow: hidden;
}

.medical-details summary {
    padding: 12px 16px;
    cursor: pointer;
    font-family: "Coolvetica", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #AA4E65;
    list-style: none;
    background: #fef8f6;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.medical-details summary:hover {
    background: #F5CDD3;
}

.medical-details summary::-webkit-details-marker {
    display: none;
}

.medical-details summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 8px;
    font-size: 10px;
    transition: transform 0.2s;
}

.medical-details[open] summary::before {
    transform: rotate(90deg);
}

.medical-details[open] .doctor-notes {
    padding: 16px;
    border-top: 1px solid #F0E0DC;
    background: white;
}

.doctor-notes .doctor-name {
    font-family: "Coolvetica", sans-serif;
    font-size: 13px;
    color: #AA4E65;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #F0E0DC;
}

.note-item {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.note-item strong {
    display: inline-block;
    font-family: "Coolvetica", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #AA4E65;
    min-width: 100px;
}

.note-item p {
    font-family: "Coolvetica", sans-serif;
    font-size: 14px;
    color: #5B2B37;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    background: #fef8f6;
    padding: 8px 12px;
    border-radius: 12px;
}

.doctor-notes.empty {
    text-align: center;
    padding: 20px;
    color: #aaa;
    font-size: 13px;
    font-style: italic;
}

@media (max-width: 600px) {
    .note-item {
        flex-direction: column;
        gap: 4px;
    }
    .note-item strong {
        min-width: auto;
    }
}

/* ===== НАСТРОЙКИ ===== */
.settings-input {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #F5CDD3;
    font-family: 'Coolvetica', sans-serif;
    font-size: 16px;
    letter-spacing: 0.5px;
    background: white;
}

.settings-input:focus {
    outline: none;
    border-color: #AA4E65;
}

.change-password-btn {
    margin-top: 25px;
    background: white;
    border: 2px solid #AA4E65;
    color: #AA4E65;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Coolvetica', sans-serif;
    font-size: 18px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
}

.change-password-btn:hover {
    background: #AA4E65;
    color: white;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.profile-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 550px;
    border-radius: 30px;
    padding: 35px;
    position: relative;
    border: 3px solid #F5CDD3;
}

.modal-content h3 {
    font-family: "Czizh", cursive;
    color: #AA4E65;
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 0.5px;
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 32px;
    cursor: pointer;
    color: #AA4E65;
    background: none;
    border: none;
    transition: transform 0.2s;
}

.close-modal:hover {
    transform: scale(1.1);
}

.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form label {
    display: block;
    font-family: "Coolvetica", sans-serif;
    font-weight: normal;
    color: #5B2B37;
    margin-bottom: 8px;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #F0E0DC;
    border-radius: 12px;
    font-family: "Coolvetica", sans-serif;
    font-size: 16px;
    font-weight: normal;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    box-sizing: border-box;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #AA4E65;
}

.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.save-btn {
    width: 100%;
    padding: 14px;
    background: #AA4E65;
    color: white;
    border: none;
    border-radius: 50px;
    font-family: "Coolvetica", sans-serif;
    font-size: 18px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    letter-spacing: 0.5px;
}

.save-btn:hover {
    background: #8a3e52;
    transform: scale(1.02);
}

/* ===== ЧЕКБОКС СОГЛАСИЯ ===== */
.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-family: "Coolvetica", sans-serif;
    font-size: 14px;
    color: #5B2B37;
    line-height: 1.4;
    text-align: left;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #AA4E65;
}

.checkbox-label a {
    color: #5B2B37;
    text-decoration: none;
    border-bottom: 1px dashed #5B2B37;
    transition: all 0.3s;
}

.checkbox-label a:hover {
    color: #AA4E65;
    border-bottom-color: #AA4E65;
}

@media (max-width: 480px) {
    .checkbox-label {
        font-size: 12px;
    }
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.notification {
    position: fixed;
    top: 130px;
    right: 30px;
    padding: 18px 28px;
    border-radius: 16px;
    font-family: 'Coolvetica', sans-serif;
    font-size: 16px;
    font-weight: normal;
    z-index: 10001;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    min-width: 300px;
    text-align: center;
    letter-spacing: 0.5px;
}

.notification.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-left: 5px solid #2e7d32;
}

.notification.error {
    background: linear-gradient(135deg, #f44336, #e53935);
    color: white;
    border-left: 5px solid #c62828;
}

.notification.info {
    background: linear-gradient(135deg, #AA4E65, #8a3e52);
    color: white;
    border-left: 5px solid #5B2B37;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .profile-page {
        padding: 80px 0 50px;
    }
    .profile-container {
        margin: 0 20px;
        flex-direction: column;
    }
    .profile-sidebar {
        width: 100%;
    }
    .profile-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .profile-nav a {
        padding: 12px 20px;
        font-size: 16px;
    }
    .profile-content {
        padding: 30px;
    }
    .info-label {
        width: 140px;
        font-size: 16px;
    }
    .info-value {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .profile-page {
        padding: 60px 0 40px;
    }
    .profile-container {
        margin: 0 15px;
    }
    .info-row {
        flex-direction: column;
        gap: 8px;
        padding: 15px 0;
    }
    .info-label {
        width: auto;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .pets-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .pet-card {
        padding: 20px;
    }
    .pet-name {
        font-size: 24px;
    }
    .profile-tab h2 {
        font-size: 28px;
        margin-bottom: 25px;
    }
    .info-card {
        padding: 25px;
    }
    .notification {
        top: 100px;
        right: 15px;
        left: 15px;
        min-width: auto;
    }
    .history-date-bar {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    .history-content {
        padding: 15px;
    }
    .history-service {
        font-size: 16px;
    }
    .history-pet {
        font-size: 14px;
    }
    .edit-profile-btn, .change-password-btn {
        width: 100%;
        text-align: center;
    }
    .settings-input {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-page {
        padding: 50px 0 30px;
    }
    .profile-container {
        margin: 0 10px;
        border-radius: 20px;
    }
    .profile-content {
        padding: 20px;
    }
    .profile-avatar img {
        width: 90px;
        height: 90px;
    }
    .profile-avatar h3 {
        font-size: 22px;
    }
    .profile-username {
        font-size: 16px;
    }
    .profile-email {
        font-size: 12px;
    }
    .profile-nav a {
        padding: 8px 15px;
        font-size: 14px;
    }
    .profile-tab h2 {
        font-size: 24px;
    }
    .info-card {
        padding: 18px;
    }
    .info-label, .info-value {
        font-size: 14px;
    }
    .edit-profile-btn, .change-password-btn {
        font-size: 16px;
        padding: 10px 20px;
    }
    .pet-name {
        font-size: 22px;
    }
    .pet-info p {
        font-size: 14px;
    }
    .pet-actions button {
        font-size: 13px;
        padding: 8px;
    }
    .add-pet-card .plus-icon {
        font-size: 50px;
    }
    .add-pet-card p {
        font-size: 16px;
    }
    .history-date-bar .date, .history-date-bar .time {
        font-size: 12px;
    }
    .history-content {
        padding: 12px;
    }
    .history-service {
        font-size: 14px;
    }
    .history-pet {
        font-size: 13px;
    }
}

/* ===== ШРИФТЫ ===== */
@font-face {
    font-family: "Coolvetica";
    src: url("../fonts/Coolvetica.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Czizh";
    src: url("../fonts/Czizh.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}