* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.profile-container {
    background: linear-gradient(135deg, #FFAA00 0%, #FFAA00 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 40px 50px;
    max-width: 1100px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
}

.profile-header img {
    width: 200px;
    height: auto;
}

.profile-header-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: #237227;
    margin: 0;
    line-height: 1.2;
}

.profile-header-text h2 {
    font-size: 16px;
    font-weight: 500;
    color: #237227;
    margin: 0;
    line-height: 1.2;
}

.profile-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

.profile-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.upload-text {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-group.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.info-value {
    padding: 12px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a2e;
    background: #f8f9fa;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.info-value.textarea {
    min-height: 80px;
    align-items: flex-start;
}

.profile-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.btn {
    padding: 12px 35px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back {
    background: #e8e8e8;
    color: #1a1a2e;
}

.btn-back:hover {
    background: #d0d0d0;
}

.btn-edit {
    background: #FFAA00;
    color: white;
}

.btn-edit:hover {
    background: #2d2d44;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 26, 46, 0.3);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

.modal-overlay.active .modal-content {
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: #FFAA00;
    color: white;
    padding: 20px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-form-group {
    margin-bottom: 20px;
}

.modal-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #FFAA00;
    margin-bottom: 8px;
}

.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    color: #FFAA00;
    background: white;
    transition: all 0.3s ease;
}

.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus {
    outline: none;
    border-color: #FFC837;
}

.modal-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-form-group input[type="file"] {
    padding: 10px;
    font-size: 13px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.flash-message {
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@media (max-width: 968px) {
    .profile-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .profile-info {
        grid-template-columns: 1fr;
    }

    .profile-photo {
        width: 180px;
        height: 180px;
    }

    .profile-card {
        padding: 30px 25px;
    }
}

@media (max-width: 576px) {
    .profile-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
