/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: white;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    /* Add max height */
    overflow-y: auto;
    /* Add scroll for content */
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-30px);
    transition: all 0.4s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 15px;
    /* Reduced padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    /* Make header sticky */
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    /* Smaller font size */
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 15px;
    /* Reduced padding */
}

.modal-form .form-group {
    margin-bottom: 12px;
    /* Reduced margin */
}

.modal-form label {
    display: block;
    margin-bottom: 4px;
    /* Reduced margin */
    font-weight: 500;
    color: var(--primary-color);
    font-size: 14px;
    /* Smaller font */
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 10px;
    /* Reduced padding */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    /* Smaller font */
    transition: var(--transition);
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.modal-footer {
    padding: 10px 15px;
    /* Reduced padding */
    text-align: right;
    border-top: 1px solid var(--border-color);
    position: sticky;
    /* Make footer sticky */
    bottom: 0;
    background: white;
    z-index: 10;
}

.boss-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(26, 95, 122, 0.2);
    margin-left: 20px;
}

.boss-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(26, 95, 122, 0.3);
}

.boss-btn i {
    font-size: 16px;
}

.success-message {
    display: none;
    text-align: center;
    padding: 20px 15px;
    /* Reduced padding */
}

.success-message.active {
    display: block;
}

.success-message i {
    font-size: 50px;
    /* Smaller icon */
    color: #4caf50;
    margin-bottom: 15px;
}

.success-message h3 {
    font-size: 20px;
    /* Smaller heading */
    margin-bottom: 10px;
    color: var(--primary-color);
}

.success-message p {
    font-size: 14px;
    /* Smaller text */
    margin-bottom: 15px;
}

.hidden {
    display: none;
}

/* Mobile specific adjustments */
@media screen and (max-width: 576px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-form label {
        font-size: 13px;
    }

    .modal-form input,
    .modal-form select,
    .modal-form textarea {
        padding: 8px;
        font-size: 13px;
    }

    .success-message i {
        font-size: 40px;
    }

    .success-message h3 {
        font-size: 18px;
    }

    .success-message p {
        font-size: 13px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}