/* Masters Management Styles */
.container-fluid {
    padding: 8px 10px;
}

.master-tabs {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 16px;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    flex-shrink: 0;
}

.tab-btn:hover {
    background: rgba(0,123,255,0.1);
    color: #007bff;
}

.tab-btn.active {
    background: white;
    color: #007bff;
    border-bottom-color: #007bff;
}

.tab-btn i {
    margin-right: 6px;
}

.tab-content {
    display: none;
    padding: 20px;
}

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

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f3f4;
}

.tab-header h5 {
    margin: 0;
    font-weight: 600;
}

.master-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.master-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    overflow: hidden;
}

.master-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.master-card-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.master-info h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
}

.master-info small {
    color: #6c757d;
    font-size: 0.75rem;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.master-card-body {
    padding: 12px 16px;
    font-size: 0.8rem;
    color: #6c757d;
}

.master-card-body p {
    margin: 4px 0;
    display: flex;
    align-items: center;
}

.master-card-body i {
    width: 16px;
    margin-right: 8px;
    color: #007bff;
}

.master-actions {
    padding: 8px 16px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 8px;
}

.btn-edit, .btn-delete {
    flex: 1;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit {
    background: #ffc107;
    color: white;
}

.btn-edit:hover {
    background: #e0a800;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

.btn-edit i, .btn-delete i {
    font-size: 0.8rem;
}

/* Modal Styles */
.modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.modal-content {
    border-radius: 8px;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
}

.form-control {
    font-size: 0.85rem;
    border-radius: 4px;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 4px 8px;
    }
    
    .tab-nav {
        padding: 0 8px;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .tab-content {
        padding: 12px;
    }
    
    .tab-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .master-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

/* Animation */
.master-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.3s ease forwards;
}

.master-card:nth-child(2) { animation-delay: 0.1s; }
.master-card:nth-child(3) { animation-delay: 0.2s; }
.master-card:nth-child(4) { animation-delay: 0.3s; }
.master-card:nth-child(5) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h5 {
    margin-bottom: 8px;
    color: #495057;
}