/* ========================================
   JUSCONNECT - CSS COMUM
   ======================================== */

/* ========================================
   VARIÁVEIS CSS
   ======================================== */
:root {
    --primary-color: #1e3c72;
    --primary-hover: #2a5298;
    --secondary-color: #f8f9fa;
    --accent-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #e9ecef;
    --dark-color: #343a40;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    --border-radius: 15px;
    --border-radius-sm: 10px;
    --transition: all 0.3s ease;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ========================================
   RESET E BASE
   ======================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
}

/* ========================================
   NAVEGAÇÃO
   ======================================== */
.navbar-brand img {
    height: 45px;
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Ajuste para navbar sem texto */
.navbar-brand {
    padding: 0.5rem 0;
}

.navbar-brand:focus {
    box-shadow: none;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: white !important;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

/* ========================================
   BOTÕES
   ======================================== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--primary-color);
}

/* ========================================
   HERO SECTIONS
   ======================================== */
.hero-section,
.pricing-hero,
.testimonials-hero,
.partners-hero,
.admin-hero,
.help-hero,
.events-hero,
.companies-hero,
.resources-hero,
.contact-hero,
.privacy-hero,
.blog-hero,
.applications-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before,
.pricing-hero::before,
.testimonials-hero::before,
.partners-hero::before,
.admin-hero::before,
.help-hero::before,
.events-hero::before,
.companies-hero::before,
.resources-hero::before,
.contact-hero::before,
.privacy-hero::before,
.blog-hero::before,
.applications-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* ========================================
   FORMULÁRIOS
   ======================================== */
.form-control {
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 60, 114, 0.25);
}

.form-select {
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    padding: 0.75rem 1rem;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 60, 114, 0.25);
}

.input-group-text {
    background-color: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-right: none;
    color: var(--text-muted);
}

.input-group .form-control {
    border-left: none;
}

/* ========================================
   BADGES E STATUS
   ======================================== */
.badge {
    font-weight: 500;
    border-radius: 15px;
    padding: 0.375rem 0.75rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active,
.status-pending,
.status-reviewing,
.status-accepted,
.status-interview {
    background-color: #d4edda;
    color: #155724;
}

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

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-reviewing {
    background-color: #cce5ff;
    color: #004085;
}

.status-interview {
    background-color: #e2e3e5;
    color: #383d41;
}

/* ========================================
   ÍCONES E AVATARES
   ======================================== */
.icon-container {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.icon-container:hover {
    transform: scale(1.1);
}

.avatar {
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
}

.avatar:hover {
    transform: scale(1.05);
}

/* ========================================
   SEÇÕES ESPECIAIS
   ======================================== */
.section-padding {
    padding: 4rem 0;
}

.section-bg-light {
    background-color: var(--secondary-color);
}

.section-bg-gradient {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--light-color) 100%);
}

.highlight-box {
    background-color: #e3f2fd;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin: 2rem 0;
}

/* ========================================
   FILTROS E TABS
   ======================================== */
.filter-tabs {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin-bottom: 2rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: none;
    background: none;
    color: var(--text-muted);
    transition: var(--transition);
    margin-right: 0.5rem;
    font-weight: 500;
}

.filter-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.filter-tab:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.filter-tab.active:hover {
    background-color: var(--primary-hover);
    color: white;
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.5rem;
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    text-decoration: none;
}

.sidebar-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* ========================================
   ESTATÍSTICAS
   ======================================== */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

/* ========================================
   FAQ E ACCORDION
   ======================================== */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-header {
    background-color: var(--secondary-color);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-header:hover {
    background-color: var(--light-color);
}

.faq-body {
    padding: 1rem;
    display: none;
    background-color: white;
}

.faq-body.show {
    display: block;
}

/* ========================================
   PAGINAÇÃO
   ======================================== */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    border-radius: var(--border-radius-sm);
    margin: 0 0.25rem;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Mobile First Approach */
@media (max-width: 575.98px) {
    .hero-section,
    .pricing-hero,
    .testimonials-hero,
    .partners-hero,
    .admin-hero,
    .help-hero,
    .events-hero,
    .companies-hero,
    .resources-hero,
    .contact-hero,
    .privacy-hero,
    .blog-hero,
    .applications-header {
        padding: 2rem 0;
    }
    
    .display-5,
    .display-6 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .filter-tab {
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section,
    .pricing-hero,
    .testimonials-hero,
    .partners-hero,
    .admin-hero,
    .help-hero,
    .events-hero,
    .companies-hero,
    .resources-hero,
    .contact-hero,
    .privacy-hero,
    .blog-hero,
    .applications-header {
        padding: 2.5rem 0;
    }
    
    .display-5,
    .display-6 {
        font-size: 2.5rem;
    }
    
    .stats-number {
        font-size: 2.2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section,
    .pricing-hero,
    .testimonials-hero,
    .partners-hero,
    .admin-hero,
    .help-hero,
    .events-hero,
    .companies-hero,
    .resources-hero,
    .contact-hero,
    .privacy-hero,
    .blog-hero,
    .applications-header {
        padding: 3rem 0;
    }
    
    .display-5,
    .display-6 {
        font-size: 3rem;
    }
    
    .stats-number {
        font-size: 2.3rem;
    }
    
    .sidebar {
        position: sticky;
        top: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section,
    .pricing-hero,
    .testimonials-hero,
    .partners-hero,
    .admin-hero,
    .help-hero,
    .events-hero,
    .companies-hero,
    .resources-hero,
    .contact-hero,
    .privacy-hero,
    .blog-hero,
    .applications-header {
        padding: 4rem 0;
    }
    
    .display-5,
    .display-6 {
        font-size: 3.5rem;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-5,
    .display-6 {
        font-size: 4rem;
    }
    
    .stats-number {
        font-size: 3rem;
    }
}

/* ========================================
   ANIMAÇÕES E TRANSITIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ========================================
   UTILITÁRIOS
   ======================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow);
}

.shadow-custom-hover {
    box-shadow: var(--shadow-hover);
}

.border-radius-custom {
    border-radius: var(--border-radius);
}

.border-radius-sm-custom {
    border-radius: var(--border-radius-sm);
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .navbar,
    .sidebar,
    .btn,
    .filter-tabs {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .hero-section,
    .pricing-hero,
    .testimonials-hero,
    .partners-hero,
    .admin-hero,
    .help-hero,
    .events-hero,
    .companies-hero,
    .resources-hero,
    .contact-hero,
    .privacy-hero,
    .blog-hero,
    .applications-header {
        background: white !important;
        color: var(--dark-color) !important;
    }
}

/* ========================================
   DARK MODE (Preparação para futuro)
   ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --secondary-color: #2d3748;
        --light-color: #4a5568;
        --border-color: #4a5568;
        --text-muted: #a0aec0;
    }
    
    body {
        background-color: #1a202c;
        color: #e2e8f0;
    }
    
    .card {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .navbar {
        background-color: #2d3748 !important;
    }
}

/* ========================================
   FIM DO CSS COMUM
   ======================================== */
