/* Reset and Base Styles */
.mbox-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.mbox-container {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Utility Classes */
.mbox-hidden {
    display: none !important;
}

.mbox-visible {
    display: block !important;
}

.mbox-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.mbox-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: mbox-spin 0.6s linear infinite;
}

@keyframes mbox-spin {
    to { transform: rotate(360deg); }
}

/* Feedback Messages */
.mbox-feedback {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: mbox-slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mbox-feedback.mbox-success {
    background: #1a7049;
}

.mbox-feedback.mbox-error {
    background: #d93025;
}

.mbox-feedback.mbox-warning {
    background: #ff9800;
}

@keyframes mbox-slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Form Styles */
.mbox-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.mbox-form-group {
    margin-bottom: 20px;
}

.mbox-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.mbox-form-input,
.mbox-form-select,
.mbox-form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.mbox-form-input:focus,
.mbox-form-select:focus,
.mbox-form-textarea:focus {
    outline: none;
    border-color: #1a7049;
    box-shadow: 0 0 0 3px rgba(26, 112, 73, 0.1);
}

.mbox-form-error {
    color: #d93025;
    font-size: 14px;
    margin-top: 5px;
}

/* Button Styles */
.mbox-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.mbox-btn-primary {
    background: #1a7049;
    color: white;
}

.mbox-btn-primary:hover {
    background: #145c3a;
    transform: translateY(-1px);
}

.mbox-btn-secondary {
    background: #6c757d;
    color: white;
}

.mbox-btn-secondary:hover {
    background: #5a6268;
}

.mbox-btn-danger {
    background: #d93025;
    color: white;
}

.mbox-btn-danger:hover {
    background: #c5301f;
}

.mbox-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Card Styles */
.mbox-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.mbox-card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mbox-card-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Modal Styles */
.mbox-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}

.mbox-modal {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.mbox-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.mbox-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* Table Styles */
.mbox-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.mbox-table th,
.mbox-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.mbox-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.mbox-table tr:hover {
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mbox-modal {
        width: 95%;
        padding: 20px;
    }
    
    .mbox-table {
        font-size: 14px;
    }
    
    .mbox-table th,
    .mbox-table td {
        padding: 8px;
    }
    
    .mbox-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Animation Classes */
.mbox-fade-in {
    animation: mbox-fadeIn 0.3s ease-out;
}

.mbox-slide-up {
    animation: mbox-slideUp 0.3s ease-out;
}

@keyframes mbox-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mbox-slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}