/* Add User Modal Styles */
:root {
    --modal-max-height: 450px;
    --modal-header-height: 100px;
    --modal-footer-height: 70px;
    --modal-body-max-height: 280px; /* 450 - 100 - 70 */
    --green-accent: #00b74a;
}

.modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
}

.modal-content {
    border-radius: 12px;
    border: none;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-height: var(--modal-max-height);
    display: flex;
    flex-direction: column;
}

/* Fixed height for all modal steps */
.modal-step {
    height: 100%;
    max-height: var(--modal-max-height);
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.modal-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    background: white;
    flex-shrink: 0;
    height: auto;
    min-height: 65px;
    max-height: 100px;
}

.btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-size: 12px;
    opacity: 0.7;
    z-index: 5;
    padding: 5px;
}

.modal-title-wrap {
    width: 100%;
    padding-right: 20px;
}

.modal-icon-container {
    width: 32px;
    height: 32px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.modal-icon {
    color: var(--green-accent);
    font-size: 16px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
}

.modal-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* User Profile in Header */
.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-right: 20px;
}

.user-profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin: 3px 0;
}

/* Modal Body */
.modal-body {
    padding: 15px 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 100px;
    max-height: var(--modal-body-max-height);
    background: white;
}

.step2-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-label {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 6px;
    color: #333;
}

.form-control {
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 13px;
}

.form-control:focus {
    border-color: var(--green-accent);
    box-shadow: 0 0 0 0.15rem rgba(0, 183, 74, 0.1);
}

.form-control::placeholder {
    color: #aaa;
    font-size: 12px;
}

textarea.form-control {
    height: auto;
    min-height: 70px;
    max-height: 100px;
}

/* Reduce spacing between form elements */
.mb-3 {
    margin-bottom: 12px !important;
}

/* Custom Search Input */
.input-search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 13px;
}

.input-search-container .form-control {
    padding-left: 32px;
}

/* Custom Select */
.custom-select-container {
    position: relative;
}

.select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 13px;
    pointer-events: none;
}

.form-select {
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 13px;
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
}

/* Profile Upload Area */
.profile-upload-area {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    height: 85px;
}

.image-preview-container {
    width: 60px;
    height: 60px;
    margin-right: 12px;
    flex-shrink: 0;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 20px;
}

.upload-info {
    flex: 1;
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.upload-text {
    color: #0056b3;
    text-decoration: underline;
    cursor: pointer;
}

.upload-formats {
    color: #888;
    font-size: 11px;
}

/* Step Indicators */
.step-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 5px;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
}

.dot.active {
    background-color: var(--green-accent);
}

/* Modal Footer */
.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    background: white;
    flex-shrink: 0;
    height: auto;
    min-height: 60px;
    max-height: var(--modal-footer-height);
}

.btn {
    border-radius: 24px;
    padding: 6px 20px;
    font-weight: 500;
    font-size: 13px;
}

.btn-light {
    background-color: white;
    border: 1px solid #ddd;
    color: #333;
}

.btn-success {
    background-color: var(--green-accent);
    border: none;
}

.btn-success:hover {
    background-color: #009d3e;
}

/* Confirmation Screen Styles */
.confirmation-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 20px;
}

.user-confirm-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.confirm-subtitle {
    font-size: 13px;
    color: #666;
}

.confirmation-footer {
    justify-content: center;
}

/* Row spacing fix */
.row {
    margin-left: -6px;
    margin-right: -6px;
}

.row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
}

/* Dark Mode Styles */
body.dark-mode .modal-content,
body.dark-mode .modal-header,
body.dark-mode .modal-body,
body.dark-mode .modal-footer {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    border-color: #444;
}

body.dark-mode .modal-title,
body.dark-mode .user-name,
body.dark-mode .form-label {
    color: #e0e0e0;
}

body.dark-mode .modal-subtitle,
body.dark-mode .confirm-subtitle {
    color: #bbb;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #333;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .form-control::placeholder {
    color: #999;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    border-color: var(--green-accent);
    background-color: #3d3d3d;
}

body.dark-mode .profile-upload-area {
    background-color: #333;
    border-color: #555;
}

body.dark-mode .image-placeholder {
    background-color: #444;
    color: #bbb;
}

body.dark-mode .upload-info,
body.dark-mode .upload-formats {
    color: #bbb;
}

body.dark-mode .btn-light {
    background-color: #3d3d3d;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .modal-icon-container {
    background-color: #444;
}

/* Mobile Responsive Styles */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-header, 
    .modal-body, 
    .modal-footer {
        padding: 12px 15px;
    }
    
    .profile-upload-area {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    
    .image-preview-container {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .upload-info {
        text-align: center;
    }
}

/* Drag highlight effect */
.drag-highlight {
    border-color: var(--green-accent) !important;
    background-color: rgba(0, 183, 74, 0.05) !important;
}