/**
 * Modal Styles for LootUp
 */

/* Modal Container */
.modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-in-out;
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    animation: slideDown 0.3s ease-in-out;
}

/* Modal Header */
.modal-header {
    padding: 20px 25px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2196F3;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Modal Close Button */
.modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #2196F3;
}

/* Modal Body */
.modal-body {
    padding: 25px;
}

/* Form Styles */
.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.modal-body .form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.modal-body .form-control:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.25);
}

.modal-body .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.modal-body .form-check-input {
    margin-right: 10px;
}

.modal-body .form-check-label {
    margin-bottom: 0;
}

.modal-body .btn {
    display: block;
    width: 100%;
    padding: 12px 15px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-body .btn:hover {
    background-color: #0d8aee;
}

.modal-body .text-center {
    text-align: center;
}

.modal-body .mt-3 {
    margin-top: 15px;
}

.modal-body a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.modal-body a:hover {
    color: #0d8aee;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .modal-content {
        margin: 15% auto;
        max-width: 95%;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
}