:root {
    --primary-orange: #ff7849;
    --text-color: #2c3e50;
    --background-color: #ffffff;
    --input-border: #e2e8f0;
    --input-focus: #cbd5e1;
    --error-color: #dc2626;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.content {
    max-width: 400px;
    width: 100%;
    padding: 2rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 1.25rem;
    text-align: center;
}

.profile-section {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-photo-container {
    position: relative;
    display: inline-block;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.4rem;
    cursor: pointer;
    border: 3px solid var(--primary-orange);
    transition: transform 0.2s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.username {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-top: 1rem;
}

.buttons-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    background-color: white;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
}

.action-button:hover {
    background-color: var(--primary-orange);
    color: white;
}

.action-link-group {
    text-align: center;
}

.action-link {
    color: #dc2626;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: inline-block;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.action-link:hover {
    color: #b91c1c;
}

.action-link.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid var(--input-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    color: var(--text-color);
}

.modal-body {
    padding: 1rem;
    overflow: hidden;
    flex: 1;
    position: relative;
}

.cropper-container {
    max-height: 400px;
    touch-action: none;
}

.cropper-container img {
    max-width: 100%;
    display: block;
}

/* Make crop box circular */
.cropper-view-box,
.cropper-face {
    border-radius: 50%;
}

.cropper-view-box {
    box-shadow: 0 0 0 1px #39f;
    outline: 0;
}

.cropper-face {
    background-color: inherit !important;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid var(--input-border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.upload-button {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.upload-button:hover {
    background-color: #e66a3e;
}

/* Confirmation Modal Styles */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.confirm-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 1.5rem;
}

.confirm-title {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.confirm-text {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
}

.confirm-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s;
}

.floating-label {
    position: absolute;
    left: 1rem;
    top: 0.75rem;
    font-size: 1rem;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: var(--background-color);
    padding: 0 0.25rem;
    transform-origin: left top;
}

.confirm-input:focus + .floating-label,
.confirm-input:not(:placeholder-shown) + .floating-label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: var(--primary-orange);
    font-weight: 500;
    transform: scale(1);
}

.confirm-input:focus + .floating-label {
    color: var(--primary-orange);
}

.confirm-input[readonly] + .floating-label {
    color: #6b7280;
}

.confirm-input[readonly]:focus + .floating-label,
.confirm-input[readonly]:not(:placeholder-shown) + .floating-label {
    color: #6b7280;
}

.confirm-input:focus {
    outline: none;
    border-color: var(--input-focus);
}

.confirm-input[readonly] {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

/* .confirm-input:focus {
    outline: none;
    border-color: var(--input-focus);
} */

.confirm-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.confirm-cancel,
.confirm-delete,
.confirm-proceed {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.confirm-cancel {
    background-color: transparent;
    border: 1px solid var(--input-border);
    color: var(--text-color);
}

.confirm-delete {
    background-color: #dc2626;
    border: none;
    color: white;
}

.confirm-proceed {
    background-color: var(--primary-orange);
    border: none;
    color: white;
}

.confirm-cancel:hover {
    background-color: #f8fafc;
}

.confirm-delete:hover {
    background-color: #b91c1c;
}

.confirm-proceed:hover {
    background-color: #e66a3e;
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    text-align: right;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .content {
        padding: 1.5rem;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .confirm-content {
        width: 95%;
    }

    .confirm-buttons {
        flex-direction: column;
    }

    .confirm-cancel,
    .confirm-delete,
    .confirm-proceed {
        width: 100%;
    }
}