/* Overlay Base Styles */
.loc-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 30, 52, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.loc-overlay-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.loc-overlay-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(13, 30, 52, 0.3);
    position: relative;
    animation: locOverlayFadeIn 0.3s ease-out;
}

@keyframes locOverlayFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.loc-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.loc-overlay-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0D1E34;
    margin: 0;
}

.loc-overlay-close {
    font-size: 24px;
    font-weight: bold;
    color: #63748A;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
}

.loc-overlay-close:hover {
    color: #2E3E53;
}

/* Form Styles */
.loc-overlay-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.loc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.loc-form-group {
    display: flex;
    flex-direction: column;
}

.loc-form-group.loc-full-width {
    grid-column: 1 / -1;
}

.loc-form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2E3E53;
    margin-bottom: 8px;
    margin-left: 4px;
}

.loc-form-input,
.loc-form-select {
    padding: 15px 20px;
    border: 2px solid #63748A;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(99, 116, 138, 0.1);
    color: #0D1E34;
    transition: all 0.3s ease;
    font-family: 'Overlock', sans-serif;
}

.loc-form-input:focus,
.loc-form-select:focus {
    outline: none;
    border-color: #2E3E53;
    background: white;
    box-shadow: 0 0 0 3px rgba(46, 62, 83, 0.1);
}

.loc-form-input.loc-readonly {
    background: rgba(99, 116, 138, 0.2);
    color: #63748A;
    cursor: not-allowed;
}

.loc-form-select {
    cursor: pointer;
}

/* Action Buttons */
.loc-overlay-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.loc-btn-primary,
.loc-btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    font-family: 'Overlock', sans-serif;
}

.loc-btn-primary {
    background: linear-gradient(135deg, #2E3E53, #0D1E34);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 62, 83, 0.3);
}

.loc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 62, 83, 0.4);
}

.loc-btn-secondary {
    background: rgba(99, 116, 138, 0.1);
    color: #63748A;
    border: 2px solid #63748A;
}

.loc-btn-secondary:hover {
    background: rgba(99, 116, 138, 0.2);
    color: #2E3E53;
    border-color: #2E3E53;
}

/* Message Styles */
.loc-overlay-message {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loc-overlay-message.loc-overlay-success {
    background: linear-gradient(135deg, rgba(201, 229, 224, 0.3), rgba(42, 82, 72, 0.1));
    border: 1px solid #C9E5E0;
    color: #2A5248;
}

.loc-overlay-message.loc-overlay-error {
    background: linear-gradient(135deg, rgba(210, 170, 146, 0.3), rgba(126, 88, 65, 0.1));
    border: 1px solid #D2AA92;
    color: #7E5841;
}

.loc-message-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .loc-overlay-content {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .loc-form-row {
        grid-template-columns: 1fr;
    }
    
    .loc-overlay-actions {
        flex-direction: column;
    }
    
    .loc-btn-primary,
    .loc-btn-secondary {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .loc-overlay-content {
        padding: 25px 15px;
    }
    
    .loc-overlay-title {
        font-size: 1.5rem;
    }
}
