/* Glassmorphism Modals for Avesis Integration */
.avesis-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.avesis-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.avesis-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    z-index: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 16px;
    color: #fff;
}

.avesis-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avesis-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 500;
}

.avesis-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.avesis-modal-close:hover {
    color: #fff;
}

.avesis-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.avesis-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Form Styles inside Modal */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.glass-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Selection List Styles */
.selection-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.limit-info {
    font-size: 0.9rem;
    color: #C5A034;
    /* AU Gold */
}

.btn-manual-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-manual-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.avesis-selection-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.avesis-selection-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.avesis-selection-item.selected {
    background: rgba(197, 160, 52, 0.15);
    /* AU Gold with transparency */
    border-color: rgba(197, 160, 52, 0.5);
}

.avesis-selection-item input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 4px;
}

.avesis-selection-item label {
    flex: 1;
    cursor: pointer;
}

.item-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.item-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.btn-cancel {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 500;
}

.btn-cancel:hover {
    color: #fff;
}

.btn-confirm {
    background: linear-gradient(135deg, #004880 0%, #002d50 100%);
    /* AU Navy */
    border: 1px solid rgba(197, 160, 52, 0.4);
    /* AU Gold border */
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 72, 128, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 72, 128, 0.6);
    border-color: rgba(197, 160, 52, 0.8);
}

/* Manual Entry Area */
.manual-entry-area {
    min-height: 200px;
    resize: vertical;
}

/* Wizard Specific Styles */
.wizard-profile-info {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.wizard-section {
    margin-bottom: 1.5rem;
}

.wizard-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.wizard-preview-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.5;
}

.avesis-selection-item.selected {
    background: linear-gradient(135deg, rgba(0, 72, 128, 0.2) 0%, rgba(197, 160, 52, 0.2) 100%);
    border-color: rgba(197, 160, 52, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.selection-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.limit-info {
    font-size: 0.9rem;
    color: #C5A034;
    font-weight: 600;
}

.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}