/* QCM Manager Template Styles */

/* Main container for all QCM pages */
.qcm-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    color: #333;
}

/* For ensuring consistent content padding */
.qcm-content {
    padding: 15px;
    max-width: 100%;
    overflow-x: hidden;
}

/* For smaller cards and contained elements */
.qcm-card {
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Responsive tables */
.qcm-content table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Badge Overrides - Fixing contrast issues */
.badge-info {
    background-color: #17a2b8 !important;
    color: white !important;
}

.badge-secondary {
    background-color: #6c757d !important;
    color: white !important;
}

.badge-primary {
    background-color: #007bff !important;
    color: white !important;
}

.badge-success {
    background-color: #28a745 !important;
    color: white !important;
}

.badge-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

.role-badge {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 4px;
    font-weight: normal;
    font-size: 0.85em;
}

/* Team Creation Wizard Styles */
.wizard-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    color: #333;
}

.wizard-container h4, .wizard-container h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.form-section {
    margin-bottom: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #333;
}

.user-card {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background-color: white;
    color: #333;
}

.user-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.user-card.selected {
    border-color: #4caf50;
    background-color: #f1f8e9;
}

.user-card.leader {
    border-color: #ffc107;
    background-color: #fffde7;
}

.breadcrumb-nav {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #007bff;
    color: #333;
}

.navigation-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.navigation-buttons .btn {
    transition: all 0.2s;
    padding: 10px 20px;
}

.navigation-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Team Management Overview Styles */
.team-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    color: #333;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.team-card .card-header {
    background-color: #4caf50;
    color: white;
    padding: 15px 20px;
    font-weight: bold;
}

.team-card .card-body {
    padding: 20px;
}

.performance-score {
    font-size: 24px;
    font-weight: bold;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.performance-score.high {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.performance-score.medium {
    background-color: #fff8e1;
    color: #ff8f00;
}

.performance-score.low {
    background-color: #ffebee;
    color: #c62828;
}

/* Make sure images and other media don't overflow */
.qcm-content img, 
.qcm-content video, 
.qcm-content iframe,
.qcm-content .card {
    max-width: 100%;
}

/* Responsive styles for small screens */
@media (max-width: 768px) {
    .qcm-container {
        padding: 15px 10px;
    }
    
    .qcm-content {
        padding: 10px;
    }
}
