/**
 * Stili per la pagina Graduatoria Borse di Studio IoStudio
 * Mantiene il look & feel del sito esistente
 */

/* ========================================
   Header Section
   ======================================== */
.header-section {
    padding: 2rem 0;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: #003d7a;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

/* ========================================
   Statistics Dashboard
   ======================================== */
.statistics-dashboard {
    padding: 2rem 0;
}

.stat-card {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-card.stat-success {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.stat-card.stat-danger {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #003d7a;
    margin-bottom: 0.5rem;
}

.stat-card.stat-success .stat-number {
    color: #155724;
}

.stat-card.stat-danger .stat-number {
    color: #721c24;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ========================================
   Search Section
   ======================================== */
.search-section {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #003d7a;
    margin-bottom: 1rem;
}

.section-description {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.search-form .form-group {
    margin-bottom: 1rem;
}

.search-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.search-form .form-control {
    border: 2px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-form .form-control:focus {
    border-color: #003d7a;
    box-shadow: 0 0 0 0.2rem rgba(0, 61, 122, 0.25);
    outline: none;
}

.search-form .btn-primary {
    background-color: #003d7a;
    border-color: #003d7a;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-form .btn-primary:hover {
    background-color: #002a54;
    border-color: #002a54;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-form .btn-primary:active {
    transform: translateY(0);
}

/* ========================================
   Help Section
   ======================================== */
.help-section .alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.help-section ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.help-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ========================================
   Loading Indicator
   ======================================== */
#loadingIndicator {
    padding: 3rem 0;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* ========================================
   Results Section
   ======================================== */
.results-list {
    margin-top: 1rem;
}

.result-card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.result-card.border-success {
    border-left: 5px solid #28a745;
}

.result-card.border-danger {
    border-left: 5px solid #dc3545;
}

.result-header {
    padding: 1rem 1.5rem;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.result-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.result-header.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.status-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    font-weight: bold;
}

.status-text {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-body {
    padding: 1.5rem;
}

.result-body p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.result-body strong {
    color: #003d7a;
    font-weight: 600;
}

.result-body .badge {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
}

/* ========================================
   No Results Message
   ======================================== */
#noResultsMessage {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
}

#noResultsMessage i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* ========================================
   Footer Info
   ======================================== */
.footer-info {
    padding: 2rem 0;
}

.footer-info hr {
    border-top: 2px solid #dee2e6;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb-container {
    padding: 0;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "";
    padding: 0;
}

.breadcrumb-item a {
    color: #003d7a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #002a54;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #6c757d;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .search-form .btn-primary {
        margin-top: 1rem;
        width: 100%;
    }

    .result-body {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.3rem;
    }

    .stat-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .search-section {
        padding: 1.5rem;
    }

    .result-header {
        padding: 0.75rem 1rem;
    }

    .status-text {
        font-size: 1rem;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    animation: fadeIn 0.5s ease-out;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .search-section,
    .breadcrumb-container,
    .btn,
    #loadingIndicator {
        display: none !important;
    }

    .result-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }

    .result-header {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
