/* Student Overview Custom Styles */

.info-box {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.info-box-icon {
    border-radius: 10px 0 0 10px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.card-title i {
    font-size: 1.1em;
}

.content-header h1 {
    font-weight: 600;
    color: #343a40;
}

.content-header .text-muted {
    font-size: 1rem;
    margin-top: 5px;
}

/* Custom info box colors */
.bg-purple {
    background: linear-gradient(135deg, #6f42c1, #8e5db5) !important;
}

.bg-info {
    background: linear-gradient(135deg, #17a2b8, #3bb4d8) !important;
}

.bg-success {
    background: linear-gradient(135deg, #28a745, #48c968) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ffc107, #ffcd3a) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-box-number {
        font-size: 1.2rem !important;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .info-box {
        margin-bottom: 1rem;
    }
}

/* Animation for page load */
.card, .info-box {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Custom button styling */
.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #003d82);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

/* Breadcrumb styling */
.breadcrumb {
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #0056b3;
}

/* Trainer Information Section */
.trainer-info-section {
    padding: 10px 0;
}

.trainer-photo {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    margin: 0 auto;
    display: block;
}

.trainer-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 10px;
}

.trainer-bio {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Modal de Seleção de Treinador */
#modal-alterar-treinador .modal-header {
    border-radius: 0;
}

.trainer-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
}

.trainer-card:hover {
    border-color: #007bff;
    box-shadow: 0 3px 10px rgba(0,123,255,0.2);
    transform: translateY(-2px);
}

.trainer-card.current-trainer {
    border-color: #28a745;
    border-width: 3px;
    background: #f0fff4;
    box-shadow: 0 0 15px rgba(40,167,69,0.3);
    cursor: default;
}

.trainer-card.current-trainer:hover {
    border-color: #28a745;
    transform: none;
    box-shadow: 0 0 15px rgba(40,167,69,0.3);
}

.trainer-card.current-trainer::before {
    content: "✓ Atual";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.trainer-card {
    position: relative;
}

.trainer-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.trainer-card .trainer-name {
    font-size: 1rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 3px;
}

.trainer-card .trainer-cref {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.trainer-card .trainer-bio {
    font-size: 0.8rem;
    color: #6c757d;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.trainer-card .badge {
    font-size: 0.7rem;
    padding: 3px 6px;
}

.trainer-card .btn-select {
    margin-top: 8px;
    font-size: 0.85rem;
    padding: 4px 12px;
}

/* Loading animation */
#loading-treinadores {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .trainer-info-section {
        padding: 5px 0;
    }

    .trainer-photo {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 15px;
    }

    .trainer-name {
        font-size: 1.2rem;
        text-align: center;
    }

    .trainer-info-section .col-sm-9 {
        text-align: center;
    }

    .trainer-info-section p {
        text-align: center;
    }

    .trainer-card {
        padding: 10px;
    }

    .trainer-card img {
        width: 50px;
        height: 50px;
    }

    .trainer-card .trainer-name {
        font-size: 0.95rem;
    }

    .trainer-card .trainer-cref {
        font-size: 0.8rem;
    }

    .trainer-card .trainer-bio {
        font-size: 0.75rem;
        max-height: 35px;
    }

    .trainer-card .btn-select {
        font-size: 0.8rem;
        padding: 3px 10px;
    }

    .trainer-card.current-trainer::before {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}

@media (max-width: 576px) {
    .trainer-photo {
        width: 70px !important;
        height: 70px !important;
    }

    .trainer-name {
        font-size: 1.1rem;
    }

    .trainer-bio {
        font-size: 0.85rem;
    }

    .trainer-card img {
        width: 45px;
        height: 45px;
    }

    .trainer-card .trainer-bio {
        display: none;
    }
}