:root {
    --mmm-primary: #0d6efd;
    --mmm-secondary: #6c757d;
}

body.mmm-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

.mmm-container {
    max-width: 100%;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .mmm-container {
        padding: 0 30px;
    }
}

.card {
    border: none;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.card-header {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mmm-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.25rem 2rem 0.25rem 0.5rem;
    margin: 0 0.5rem;
}

.nav-tab-wrapper {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.nav-tab {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin-right: 0.5rem;
    text-decoration: none;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.nav-tab:hover {
    color: var(--mmm-primary);
}

.nav-tab-active {
    color: var(--mmm-primary);
    border-bottom-color: var(--mmm-primary);
    font-weight: 600;
}

.mmm-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.mmm-stat-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.mmm-stat-card p {
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 767.98px) {
    .card {
        border-radius: 8px;
    }

    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }

    .table {
        font-size: 0.875rem;
    }

    .nav-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .form-control,
    .form-select {
        font-size: 16px;
    }
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.mmm-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.mmm-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.mmm-empty-state svg,
.mmm-empty-state img {
    max-width: 200px;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

input[type="date"],
input[type="time"] {
    font-size: 16px;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #198754;
}

@media print {
    .no-print {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}
