/* ========== VARIABLES ========== */
:root {
    --red-gradient-start: #ff0844;
    --red-gradient-mid: #e81c4f;
    --red-gradient-end: #c70039;
    --dark-red: #900C3F;
    --darker-red: #581845;
    --light-red: #ff5b79;
    --text-color: #2d3748;
    --light-text: #718096;
    --bg-dark: #1a202c;
    --bg-darker: #0d1117;
    --bg-card: rgba(26, 32, 44, 0.9);
    --border-radius: 12px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition-fast: all 0.3s ease;
    --transition-normal: all 0.5s ease;
}

/* ========== RESET & GENERAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
}

/* ========== GRADIENT TEXT & ELEMENTS ========== */
.text-gradient {
    background: linear-gradient(90deg, var(--red-gradient-start), var(--red-gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bg-gradient {
    background: linear-gradient(90deg, var(--red-gradient-start), var(--red-gradient-end));
}

.btn-gradient {
    background: linear-gradient(90deg, var(--red-gradient-start), var(--red-gradient-end));
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-fast);
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--red-gradient-end), var(--red-gradient-start));
    transition: var(--transition-fast);
    z-index: -1;
}

.btn-gradient:hover::before {
    left: 0;
}

.btn-gradient .btn-icon {
    transition: var(--transition-fast);
    margin-left: 8px;
}

.btn-gradient:hover .btn-icon {
    transform: translateX(5px);
}

/* ========== LOGIN PAGE ========== */
.login-page {
    position: relative;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    z-index: 1;
    position: relative;
}

.login-logo {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    margin-bottom: 20px;
}

.form-floating label {
    color: var(--light-text);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--red-gradient-start);
    box-shadow: 0 0 0 0.25rem rgba(255, 8, 68, 0.15);
    color: white;
}

.form-check-input:checked {
    background-color: var(--red-gradient-start);
    border-color: var(--red-gradient-start);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--light-text);
    z-index: 5;
}

/* ========== DASHBOARD STYLES ========== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    height: 100vh;
    z-index: 10;
    transition: var(--transition-normal);
}

.sidebar-collapsed {
    width: 70px;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px;
    transition: var(--transition-normal);
}

.main-content-expanded {
    margin-left: 70px;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
}

.sidebar-logo img {
    width: 35px;
    height: 35px;
    margin-right: 10px;
    transition: var(--transition-normal);
    object-fit: contain;
}

.sidebar-logo span {
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.toggle-sidebar {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.toggle-sidebar:hover {
    color: var(--red-gradient-start);
}

.nav-item {
    margin: 5px 10px;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-fast);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: white;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--red-gradient-start);
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(255, 8, 68, 0.1), transparent);
    color: var(--red-gradient-start);
    border-left: 3px solid var(--red-gradient-start);
}

.nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-collapsed .sidebar-logo span,
.sidebar-collapsed .nav-link span {
    display: none;
}

.sidebar-collapsed .sidebar-logo {
    justify-content: center;
}

.sidebar-collapsed .sidebar-logo img {
    margin-right: 0;
    width: 30px;
    height: 30px;
}

.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 15px;
}

.sidebar-collapsed .nav-link i {
    margin-right: 0;
    font-size: 1.3rem;
}

.top-bar {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.user-dropdown {
    position: relative;
}

.user-button {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    color: white;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid var(--red-gradient-start);
}

.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 10px 0;
}

.dropdown-item {
    color: white;
    padding: 8px 20px;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--red-gradient-start);
}

.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== CARDS & DASHBOARD WIDGETS ========== */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition-fast);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.card-body {
    padding: 20px;
    color: white;
}

.stats-card {
    padding: 20px;
    display: flex;
    align-items: center;
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background: linear-gradient(135deg, var(--red-gradient-start), var(--red-gradient-end));
    font-size: 1.5rem;
    color: white;
}

.stats-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.stats-info p {
    color: var(--light-text);
    margin: 0;
}

/* ========== CHARTS ========== */
.chart-container {
    position: relative;
    padding: 10px;
    height: 300px;
}

/* ========== TABLES ========== */
.table {
    color: white;
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-weight: 600;
    padding: 12px 15px;
}

.table tbody td {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.status-pending {
    background: rgba(246, 173, 85, 0.2);
    color: #f6ad55;
}

.status-inactive {
    background: rgba(229, 62, 62, 0.2);
    color: #e53e3e;
}

.avatar-group {
    display: flex;
}

.avatar-group img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    margin-right: -10px;
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: 230px;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .toggle-sidebar-mobile {
        display: block;
    }
}

@media (max-width: 768px) {
    .stats-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .hide-sm {
        display: none;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 1rem;
    }
}

/* Adicionar aqui os estilos para a página de matchings */

/* Timeline de status */
.matching-status-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    position: relative;
    padding: 0 10px;
}

.status-connector {
    flex: 1;
    height: 3px;
    background-color: #e9ecef;
    position: relative;
    z-index: 1;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 80px;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.status-step.active .status-icon {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.status-step.completed .status-icon {
    background-color: #198754;
    color: #fff;
    border-color: #198754;
}

.status-label {
    font-weight: 500;
    font-size: 12px;
}

.status-date {
    font-size: 11px;
    color: #6c757d;
}

.status-step.active .status-label {
    color: #0d6efd;
    font-weight: 600;
}

.status-step.completed .status-label {
    color: #198754;
    font-weight: 600;
}

.status-step.active + .status-connector,
.status-step.completed + .status-connector {
    background-color: #0d6efd;
}

.status-step.completed + .status-connector {
    background-color: #198754;
}

/* Comunicações */
.communication-timeline {
    padding: 10px 0;
}

.communication-item {
    display: flex;
    margin-bottom: 15px;
    position: relative;
}

.communication-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
}

.communication-content {
    flex: 1;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 10px 15px;
    position: relative;
}

.communication-content.sent {
    background-color: #e9f5ff;
    margin-right: 20px;
}

.communication-content.received {
    background-color: #f0f0f0;
    margin-left: 20px;
}

.communication-content.system {
    background-color: #f8f9fa;
    border: 1px dashed #ced4da;
}

.communication-header {
    margin-bottom: 5px;
}

.communication-date {
    font-size: 12px;
    color: #6c757d;
}

.communication-body p {
    margin-bottom: 0;
    font-size: 14px;
}

/* Avatar sizes */
.avatar-md {
    width: 48px;
    height: 48px;
    overflow: hidden;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    overflow: hidden;
}

.avatar-md img,
.avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} 