.back-arrow {
    font-size: 1.5em;
    color: #333;
    text-decoration: none;
}

.modify-form {
    padding: 20px;
    background-color: #f8f9fa;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 40px; /* Make space for the icon */
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none; /* Prevent text selection */
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.clickable-option {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s;
    position: relative; /* For the arrow */
}

.clickable-option:hover {
    border-color: #007bff;
}

.clickable-option label {
    margin-bottom: 0; /* Override default */
    font-weight: 500; /* Match other labels */
}

.clickable-option .select-arrow {
    color: #999;
}

.select-wrapper {
    position: relative;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.select-wrapper select {
    width: 100%;
    padding: 12px;
    border: none;
    background: transparent;
    font-size: 14px;
    appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.file-upload {
    margin-bottom: 25px;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 120px;
}

.file-placeholder {
    width: 100%;
    height: 100%;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-placeholder:hover {
    border-color: #007bff;
}

.photo-icon,
.upload-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: #999;
}

.file-placeholder span {
    font-size: 12px;
    color: #666;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.video-upload .file-placeholder {
    background-color: #f8f9fa;
}

.confirm-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 30px;
    transition: background 0.3s;
}

.confirm-btn:hover {
    background: linear-gradient(135deg, #ff5252, #ff7979);
}

.confirm-btn:active {
    transform: translateY(1px);
}

/* Bottom Modal Styles */
.bottom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: flex-end;
}

.modal-content {
    background-color: #fefefe;
    width: 100%;
    max-width: 600px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.modal-header {
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.modal-options {
    padding: 10px 0;
}

.modal-option {
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.modal-option:hover {
    background-color: #f4f4f4;
}

.modal-option:last-child {
    border-bottom: none;
}

.modal-cancel-btn {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.upload-guidelines {
    background-color: #fef0f0;
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.upload-guidelines h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #e74c3c;
    font-size: 14px;
}

.upload-guidelines p {
    margin: 5px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* Bottom Modal Styles */
.bottom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bottom-modal.show {
    display: flex;
    opacity: 1;
    align-items: flex-end;
}

.modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    animation: slideUp 0.3s ease forwards;
}

.bottom-modal.show .modal-content {
    transform: translateY(0);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.close-modal {
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-option {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
    text-align: left;
}

.modal-option:hover {
    background-color: #e9ecef;
    border-color: #007bff;
}

.modal-option:active {
    transform: translateY(1px);
}

.open-modal-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s;
    z-index: 999;
}

.open-modal-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.open-modal-btn:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .modify-form {
        padding: 15px;
    }
    
    .file-input-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .photo-icon,
    .upload-icon {
        font-size: 20px;
    }

    .modal-content {
        border-radius: 15px 15px 0 0;
    }

    .modal-header,
    .modal-body {
        padding: 15px;
    }

    .open-modal-btn {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
        font-size: 13px;
    }
}
