body {
    background-color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* HEADER */
.header-section {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 2rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.header-section .logo-link {
    transition: transform 0.3s ease;
    text-decoration: none;
}

.header-section .logo-link:hover {
    transform: scale(1.05);
}

.header-section .logo-text {
    color: #1e293b !important;
    font-weight: 700;
}

.header-subtitle {
    color: #64748b;
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
}

/* Logo animat */
.animated-dots {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
    margin-right: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: bounce 2s infinite;
}

.dot-1 { background-color: #3b82f6; animation-delay: 0s; }
.dot-2 { background-color: #1d4ed8; animation-delay: 0.2s; }
.dot-3 { background-color: #1e40af; animation-delay: 0.4s; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); opacity: 0.7; }
    40% { transform: translateY(-5px); opacity: 1; }
    60% { transform: translateY(-2px); opacity: 0.9; }
}

/* Botó login */
.header-login-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.header-login-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.header-login-btn i {
    margin-right: 0.5rem;
}

/* Layout principal */
.main-container {
    min-height: calc(100vh - 200px);
    padding: 4rem 0;
}

.user-section {
    position: relative;
    z-index: 2;
}

.user-card {
    background: #ffffff;
    border: none;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.user-card:hover {
    transform: translateY(-5px);
}

/* Imatges */
.user-avatar {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.user-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.user-description {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Botons */
.user-register-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    white-space: nowrap;
    min-width: 180px;
    height: 50px;
}

.user-register-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: white;
}

.user-register-btn i {
    margin-right: 0.5rem;
}

.central-buttons {
    text-align: center;
    padding: 3rem 0;
}

.btn-tauler {
    background: linear-gradient(135deg, #f6c13b, #d85e1d);
    border: none;
    border-radius: 50px;
    padding: 1.2rem 2.5rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    white-space: nowrap;
    min-width: 220px;
    height: 65px;
}

.btn-tauler:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #d8c21d, #af6b1e);
    color: white;
}

.btn-tauler i {
    margin-right: 0.5rem;
}

/* Info */
.info-section {
    background: #ffffff;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

.info-title {
    color: gray;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-description {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* FOOTER */
.footer-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 2.5rem 0 1.5rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-title {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #3b82f6;
}

.contact-item i {
    color: #3b82f6;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 1.5rem 0;
}

.footer-bottom {
    color: #94a3b8;
    font-size: 0.9rem;
}


/* Títol principal */
        h2 {
            color: #1e293b !important;
            font-weight: 700;
            text-align: center;
            margin-bottom: 2.5rem !important;
        }

        /* Formulari de filtratge */
        .filter-section {
            background: #f8fafc;
            border: none;
            border-radius: 1rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
        }

        .filter-section label {
            color: #1e293b !important;
            font-weight: 600;
        }

        .form-select {
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
            padding: 0.75rem 1rem;
            font-size: 1rem;
        }

        .form-select:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
        }

        /* Botó de filtre */
        .btn-filter {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            border: none;
            border-radius: 50px;
            padding: 0.75rem 1.5rem;
            font-weight: 600;
            color: white;
            transition: all 0.3s ease;
        }

        .btn-filter:hover {
            transform: translateY(-2px);
            background: linear-gradient(135deg, #1d4ed8, #1e40af);
        }

        /* Taula moderna */
        .table-container {
            background: #ffffff;
            border-radius: 0.5rem;
            overflow: hidden;
            border: 1px solid #f1f5f9;
        }

        .table-ofertes {
            margin-bottom: 0 !important;
        }

        /* Header de taula simplificat */
        .table-ofertes thead th {
            background: #f8fafc;
            color: #1e293b;
            font-weight: 600;
            padding: 1rem;
            border-bottom: 1px solid #e2e8f0;
        }

        .table-ofertes tbody tr {
            border-bottom: 1px solid #e2e8f0;
            transition: background-color 0.2s ease;
        }

        .table-ofertes tbody tr:hover {
            background-color: #f8fafc;
        }

        .table-ofertes tbody td {
            padding: 1rem;
            vertical-align: middle;
        }

        /* Enllaços de la taula */
        .table-ofertes a {
            color: #1d4ed8;
            font-weight: 600;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .table-ofertes a:hover {
            color: #1e40af;
        }

        /* Badges i etiquetes */
        .estudis-badge {
            background: #f0f9ff;
            color: #0369a1;
            border-radius: 0.25rem;
            padding: 0.5rem;
            margin-bottom: 0.5rem;
            display: block;
            font-size: 0.9rem;
        }

        .dias-restantes {
            font-size: 0.85em;
            font-weight: 600;
            padding: 0.3rem 0.6rem;
            border-radius: 0.25rem;
            display: inline-block;
            margin-top: 0.3rem;
        }

        .dias-restantes.text-danger {
            background: #fee2e2;
            color: #dc2626;
        }

        .dias-restantes.text-warning {
            background: #fef3c7;
            color: #d97706;
        }

        .dias-restantes.text-success {
            background: #dcfce7;
            color: #16a34a;
        }

        /* Paginació simplificada */
        .pagination {
            justify-content: center;
            margin-top: 2rem;
        }

        .pagination .page-link {
            color: #1d4ed8;
            border: 1px solid #e2e8f0;
            border-radius: 0.25rem;
            margin: 0 0.1rem;
            font-weight: 500;
            padding: 0.5rem 0.75rem;
            transition: all 0.2s ease;
        }

        .pagination .page-link:hover {
            background-color: #f8fafc;
            border-color: #3b82f6;
            color: #1d4ed8;
        }

        .pagination .page-item.active .page-link {
            background-color: #3b82f6;
            border-color: #3b82f6;
            color: white;
        }

        .pagination-info {
            color: #64748b;
            margin-top: 1rem;
            font-size: 0.9rem;
        }

        /* Alert */
        .alert-info {
            background-color: #f0f9ff;
            border: 1px solid #e0f2fe;
            border-radius: 0.5rem;
            color: #0369a1;
            padding: 1.5rem;
        }

        

/* Responsive */
@media (max-width: 768px) {
    .main-container { padding: 2rem 0; }
    .header-content { flex-direction: column; gap: 1.5rem; text-align: center; }
    .header-section { padding: 1.5rem 0; }
    .header-subtitle { font-size: 0.9rem; }
    .user-card { padding: 2rem 1rem; }
    .user-avatar { width: 100px; height: 100px; }
    .user-title { font-size: 1.5rem; }
    .user-description { font-size: 1rem; }
    .user-register-btn { min-width: 200px; height: 45px; font-size: 0.9rem; padding: 0.7rem 1.2rem; }
    .btn-tauler { min-width: 220px; height: 55px; font-size: 1.1rem; padding: 1rem 2rem; }
    .header-login-btn { font-size: 0.9rem; padding: 0.7rem 1.3rem; }
    .contact-info { flex-direction: column; gap: 1rem; align-items: center; }
    .footer-section { padding: 2rem 0 1rem 0; }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .user-register-btn { min-width: 170px; height: 48px; font-size: 0.95rem; }
    .btn-tauler { min-width: 200px; height: 60px; font-size: 1.1rem; }
    .contact-info { gap: 1.5rem; }
}
