﻿/* ============================================
   PROFILE SETTINGS PAGE - MATERIAL DESIGN
   ============================================ */

.profile-settings-page {
    width: 100%;
    min-height: 100vh;
    background: #f5f5f5;
    overflow-y: auto;
}

.profile-settings-container {
    max-width: var(--px-800);
    margin: 0 auto;
    padding: var(--px-32) var(--px-24);
}

/* Header */
.profile-settings-header {
    margin-bottom: var(--px-32);
    position: relative;
}

.profile-back-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--px-8);
    padding: var(--px-8) var(--px-12);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--px-8);
    color: #424242;
    font: normal normal 500 var(--s-14);
    cursor: pointer;
    transition: all var(--transition-smooth);
    margin-bottom: var(--px-20);
    position: absolute;
    right: 0;
}

    .profile-back-btn:hover {
        background: #fafafa;
        border-color: #bdbdbd;
        transform: translateX(-4px);
    }

.profile-back-icon {
    width: var(--px-18);
    height: var(--px-18);
}

.profile-settings-title {
    font: normal normal 600 var(--s-24);
    color: #212121;
    margin-bottom: var(--px-8);
}

.profile-settings-subtitle {
    font: normal normal 400 var(--s-14);
    color: #757575;
    line-height: 1.5;
}

/* Form Wrapper */
.profile-form-wrapper {
    background: white;
    border-radius: var(--px-12);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.profile-form {
    padding: var(--px-32) var(--px-24);
    overflow: hidden;
}

/* Profile Section */
.profile-section {
    padding-bottom: var(--px-32);
    margin-bottom: var(--px-32);
    border-bottom: 1px solid #e0e0e0;
}

    .profile-section:last-of-type {
        border-bottom: none;
        margin-bottom: 0;
    }

/* Section Header */
.section-header {
    display: flex;
    align-items: flex-start;
    gap: var(--px-16);
    margin-bottom: var(--px-24);
}

.section-icon-wrapper {
    width: var(--px-48);
    height: var(--px-48);
    border-radius: var(--px-8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .section-icon-wrapper.hotel-logo-icon {
        background: #e3f2fd;
    }

        .section-icon-wrapper.hotel-logo-icon .section-icon {
            color: #1976d2;
        }

    .section-icon-wrapper.signature-icon {
        background: #f3e5f5;
    }

        .section-icon-wrapper.signature-icon .section-icon {
            color: #7b1fa2;
        }

.section-icon {
    width: var(--px-24);
    height: var(--px-24);
}

.section-info {
    flex: 1;
}

.section-title {
    font: normal normal 600 var(--s-18);
    color: #212121;
    margin-bottom: var(--px-6);
}

.section-description {
    font: normal normal 400 var(--s-14);
    color: #757575;
    line-height: 1.5;
}

/* Upload Section */
.upload-section {
    display: flex;
    flex-direction: column;
    gap: var(--px-24);
}

/* Current Logo/Signature Preview */
.current-logo-preview {
    padding: var(--px-20);
    background: #fafafa;
    border-radius: var(--px-8);
    border: 1px solid #e0e0e0;
}

.preview-label {
    font: normal normal 500 var(--s-13);
    color: #616161;
    margin-bottom: var(--px-12);
    display: block;
}

.logo-preview-wrapper,
.signature-preview-wrapper {
    display: flex;
    align-items: center;
    gap: var(--px-16);
}

.logo-preview-container {
    width: var(--px-120);
    height: var(--px-120);
    border-radius: var(--px-8);
    background: white;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--px-12);
}

.signature-preview-container {
    width: 100%;
    max-width: var(--px-320);
    height: var(--px-120);
    border-radius: var(--px-8);
    background: white;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.signature-preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.no-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--px-8);
    color: #9e9e9e;
}

    .no-signature svg {
        width: var(--px-40);
        height: var(--px-40);
    }

    .no-signature p {
        font: normal normal 400 var(--s-13);
        margin: 0;
    }

.logo-info {
    flex: 1;
}

    .logo-info .logo-name {
        font: normal normal 500 var(--s-14);
        color: #212121;
        margin-bottom: var(--px-4);
    }

    .logo-info .logo-size {
        font: normal normal 400 var(--s-13);
        color: #757575;
        margin: 0;
    }

/* Upload Area */
.upload-area-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--px-12);
}

.upload-label {
    font: normal normal 500 var(--s-13);
    color: #616161;
    display: block;
}

.upload-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--px-180);
    padding: var(--px-24);
    background: #fafafa;
    border: 2px dashed #bdbdbd;
    border-radius: var(--px-8);
    cursor: pointer;
    transition: all var(--transition-smooth);
}

    .upload-area:hover {
        background: #f5f5f5;
        border-color: #757575;
    }

    .upload-area.drag-over {
        background: #e3f2fd;
        border-color: #1976d2;
    }

.upload-input-hidden {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--px-12);
    text-align: center;
}

.upload-icon {
    width: var(--px-48);
    height: var(--px-48);
    color: #9e9e9e;
}

.upload-text {
    font: normal normal 500 var(--s-15);
    color: #424242;
    margin: 0;
}

.upload-hint {
    font: normal normal 400 var(--s-13);
    color: #757575;
    margin: 0;
}

/* New Logo/Signature Preview */
.new-logo-preview {
    padding: var(--px-20);
    background: #e8f5e9;
    border-radius: var(--px-8);
    border: 2px solid #66bb6a;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--px-12);
}

    .preview-header .preview-label {
        font: normal normal 500 var(--s-13);
        color: #2e7d32;
        margin: 0;
    }

.btn-remove-preview {
    width: var(--px-32);
    height: var(--px-32);
    border-radius: 50%;
    background: white;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

    .btn-remove-preview:hover {
        background: #ffebee;
        border-color: #e57373;
    }

.remove-icon {
    width: var(--px-16);
    height: var(--px-16);
    color: #757575;
}

.btn-remove-preview:hover .remove-icon {
    color: #d32f2f;
}

/* Upload Guidelines */
.upload-guidelines {
    padding: var(--px-16);
    background: #fff3e0;
    border-radius: var(--px-8);
    border: 1px solid #ffb74d;
}

.guideline-title {
    display: flex;
    align-items: center;
    gap: var(--px-8);
    font: normal normal 600 var(--s-14);
    color: #e65100;
    margin-bottom: var(--px-12);
}

.guideline-icon {
    width: var(--px-20);
    height: var(--px-20);
}

.guidelines-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--px-8);
}

    .guidelines-list li {
        padding-left: var(--px-20);
        font: normal normal 400 var(--s-13);
        color: #f57c00;
        line-height: 1.5;
        position: relative;
    }

        .guidelines-list li::before {
            content: '�';
            position: absolute;
            left: 0;
            font-weight: bold;
        }

/* Form Field */
.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--px-8);
}

.field-label {
    font: normal normal 500 var(--s-13);
    color: #424242;
}

.field-input {
    width: 100%;
    padding: var(--px-12);
    border: 1px solid #e0e0e0;
    border-radius: var(--px-8);
    font: normal normal 400 var(--s-14);
    color: #212121;
    transition: all var(--transition-smooth);
}

    .field-input:focus {
        outline: none;
        border-color: #1976d2;
        box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
    }

    .field-input::placeholder {
        color: #9e9e9e;
    }

.field-hint {
    font: normal normal 400 var(--s-12);
    color: #757575;
    margin: 0;
}

/* Action Buttons */
.profile-actions {
    display: flex;
    gap: var(--px-12);
    border-top: 1px solid #e0e0e0;
    flex: 1;
    max-height: var(--px-60);
    margin: 0;
}

.btn-cancel-profile,
.btn-save-profile {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--px-8);
    padding: var(--px-14);
    border-radius: var(--px-8);
    font: normal normal 600 var(--s-14);
    cursor: pointer;
    transition: all var(--transition-smooth);
}

    .btn-cancel-profile svg,
    .btn-save-profile svg {
        width: var(--px-18);
        height: var(--px-18);
    }

.btn-cancel-profile {
    background: white;
    border: 1px solid #e0e0e0;
    color: #616161;
}

    .btn-cancel-profile:hover {
        background: #fafafa;
        border-color: #bdbdbd;
    }

.btn-save-profile {
    background: var(--hotel-primary);
    border: none;
    color: white;
    box-shadow: 0 2px 4px rgba(5, 80, 89, 0.2);
}

    .btn-save-profile:hover {
        background: var(--hotel-primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(5, 80, 89, 0.3);
    }

    .btn-save-profile:active {
        transform: translateY(0);
    }

    .btn-save-profile:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    /* Loading State */
    .btn-save-profile.loading {
        pointer-events: none;
        position: relative;
    }

        .btn-save-profile.loading span {
            opacity: 0;
        }

        .btn-save-profile.loading::after {
            content: '';
            position: absolute;
            width: var(--px-20);
            height: var(--px-20);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

/* Responsive Design */
@media (max-width: 768px) {
    .profile-settings-container {
        padding: var(--px-24) var(--px-16);
    }

    .profile-form {
        padding: var(--px-24) var(--px-20);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-preview-wrapper,
    .signature-preview-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-preview-container {
        width: 100%;
        max-width: var(--px-200);
    }

    .signature-preview-container {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .profile-settings-container {
        padding: var(--px-20) var(--px-12);
    }

    .profile-settings-title {
        font: normal normal 600 var(--s-24);
    }

    .profile-form {
        padding: var(--px-20) var(--px-16);
    }

    .section-icon-wrapper {
        width: var(--px-40);
        height: var(--px-40);
    }

    .section-icon {
        width: var(--px-20);
        height: var(--px-20);
    }

    .section-title {
        font: normal normal 600 var(--s-16);
    }

    .profile-actions {
        flex-direction: column;
    }

    .upload-area {
        min-height: var(--px-160);
    }
}

@media (max-width: 480px) {
    .profile-settings-container {
        padding: var(--px-16) var(--px-10);
    }

    .profile-back-btn {
        padding: var(--px-6) var(--px-10);
        font: normal normal 500 var(--s-13);
    }

    .profile-settings-title {
        font: normal normal 600 var(--s-22);
    }

    .profile-form {
        padding: var(--px-16) var(--px-12);
    }

    .current-logo-preview {
        padding: var(--px-16);
    }

    .upload-area {
        min-height: var(--px-140);
        padding: var(--px-16);
    }

    .upload-icon {
        width: var(--px-40);
        height: var(--px-40);
    }
}

/* Print Styles */
@media print {
    .profile-settings-page {
        background: white;
    }

    .profile-back-btn,
    .profile-actions,
    .upload-area,
    .btn-remove-preview {
        display: none;
    }

    .profile-form-wrapper {
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }
}
