/* ========================================
   INFOABEND MODUL - CSS
   Version 4.0
   ======================================== */

/* TABS */
.mp-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.mp-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #666;
    transition: all 0.2s;
}

.mp-tab:hover {
    color: #0066A1;
    background: #f5f5f5;
}

.mp-tab.active {
    color: #0066A1;
    border-bottom-color: #0066A1;
}

.mp-tab-content {
    display: none;
}

.mp-tab-content.active {
    display: block;
}

/* STATS */
.mp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.mp-stat-card {
    background: linear-gradient(135deg, #0066A1 0%, #004d7a 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.mp-stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.mp-stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* CONTROLS */
.mp-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mp-controls label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ADD FORM */
.mp-add-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

.mp-add-form h3 {
    margin: 0 0 15px 0;
    color: #333;
}

/* TABLE */
.mp-table-container {
    overflow-x: auto;
}

.mp-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mp-table thead {
    background: #f5f5f5;
}

.mp-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    border-bottom: 2px solid #ddd;
}

.mp-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.mp-table tr:hover {
    background: #f9f9f9;
}

/* INPUTS */
.mp-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
}

.mp-input:focus {
    outline: none;
    border-color: #0066A1;
}

.mp-input-sm {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.85rem;
}

/* BUTTONS */
.mp-btn {
    background: #0066A1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.mp-btn:hover {
    background: #005082;
}

.mp-btn-secondary {
    background: #757575;
}

.mp-btn-secondary:hover {
    background: #616161;
}

.mp-btn-danger {
    background: #d32f2f;
}

.mp-btn-danger:hover {
    background: #c62828;
}

.mp-btn-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* MESSAGES */
.mp-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
    border-left: 4px solid #2e7d32;
}

.mp-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
    border-left: 4px solid #c62828;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .mp-stats {
        grid-template-columns: 1fr;
    }
    
    .mp-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mp-table {
        font-size: 0.85rem;
    }
    
    .mp-table th,
    .mp-table td {
        padding: 8px;
    }
}