/* ====================================
   MODERN PROFILE PHOTO UPLOAD STYLES
   ==================================== */

/* Modern Avatar Preview */
.modern-avatar-preview {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #f0f0f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.3s ease;
}

.modern-avatar-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    border-color: #0d6efd;
}

.modern-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-avatar-preview:hover .modern-avatar-img {
    transform: scale(1.1);
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 110, 253, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-overlay i {
    font-size: 48px;
    color: white;
}

.modern-avatar-preview:hover .avatar-overlay {
    opacity: 1;
}

.avatar-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: pulse 2s infinite;
}

.avatar-badge i {
    font-size: 24px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Modern Upload Area */
.upload-area {
    border: 3px dashed #d0d0d0;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.5s;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #e7f3ff 0%, #cfe2ff 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

.upload-area.drag-over {
    border-color: #28a745;
    background: linear-gradient(135deg, #d1f4e0 0%, #a8e6cf 100%);
    transform: scale(1.02);
}

.upload-label {
    cursor: pointer;
    margin: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.upload-icon {
    font-size: 48px;
    color: #0d6efd;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(13, 110, 253, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.upload-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.upload-description {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 0;
}

.loading-container {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

/* Modal Enhancements */
.modern-modal .modal-content {
    border-radius: 25px;
    overflow: hidden;
}

.modern-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 20px 30px;
}

.modern-progress {
    border-radius: 15px;
    overflow: hidden;
}

/* Button Enhancements */
.btn-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    padding: 8px 24px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-gradient-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.5);
    background: linear-gradient(135deg, #0a58ca 0%, #0d6efd 100%);
    color: white;
}

.btn-gradient-primary:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-light {
    font-weight: 600;
    padding: 8px 24px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal.show .modal-content {
    animation: slideInUp 0.4s ease-out;
}

/* Modern Form Styles */
.form-section {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.1);
}

/*.section-title {*/
/*    font-size: 16px;*/
/*    font-weight: 700;*/
/*    color: #333;*/
/*    margin-bottom: 20px;*/
/*    padding-bottom: 12px;*/
/*    border-bottom: 3px solid #0d6efd;*/
/*    display: flex;*/
/*    align-items: center;*/
/*}*/

/*.section-title i {*/
/*    color: #0d6efd;*/
/*    font-size: 22px;*/
/*}*/

.modern-input {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modern-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

.modern-input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.form-label {
    color: #495057;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-label i {
    font-size: 16px;
}

/* Modal Dialog Scrollable */
.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 10px;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}

/* Loading State for Livewire */
.modern-input[wire\:loading] {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-avatar-preview {
        width: 200px;
        height: 200px;
        border: 4px solid #f0f0f0;
    }

    .avatar-badge {
        width: 35px;
        height: 35px;
        bottom: 10px;
        right: 10px;
    }

    .avatar-badge i {
        font-size: 18px;
    }

    .upload-icon {
        font-size: 56px;
    }

    .upload-title {
        font-size: 16px;
    }

    .upload-area {
        padding: 40px 20px;
    }
}

@media (max-width: 576px) {
    .modern-avatar-preview {
        width: 180px;
        height: 180px;
    }

    .upload-icon {
        font-size: 48px;
    }

    .upload-title {
        font-size: 14px;
    }

    .upload-description {
        font-size: 12px;
    }

    .btn-gradient-primary,
    .btn-light {
        padding: 10px 20px;
        font-size: 14px;
    }
}
