/* Variáveis */
:root {
    --color-unity1: #08141d;
    --color-unity2: #e76f24;
    --color-unity3: #4b4278;
    --color-unity4: #ae244b;
    --color-unity5: #8eac30;
    --color-light: #ffffff;
    --color-dark: #000000;
}

/* Reset e base */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

body {
    background-color: var(--color-light);
    margin: 0;
    padding: 0;
    color: var(--color-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Utilitários de fundo e texto */
.bg-unity1 { background-color: var(--color-unity1); color: #ffffff; }
.bg-unity2 { background-color: var(--color-unity2); color: #ffffff; }
.bg-unity3 { background-color: var(--color-unity3); color: #ffffff; }
.bg-unity4 { background-color: var(--color-unity4); color: #ffffff; }
.bg-unity5 { background-color: var(--color-unity5); color: #ffffff; }
.bg-light  { background-color: var(--color-light); color: #000000; }
.bg-dark   { background-color: var(--color-dark); color: #ffffff; }

.text-unity1 { color: var(--color-unity1); }
.text-unity2 { color: var(--color-unity2); }
.text-unity3 { color: var(--color-unity3); }
.text-unity4 { color: var(--color-unity4); }
.text-unity5 { color: var(--color-unity5); }

/* Botões padrão */
.btn-unity1 { background-color: var(--color-unity1); color: var(--color-light); }
.btn-unity2 { background-color: var(--color-unity2); color: var(--color-light); }
.btn-unity3 { background-color: var(--color-unity3); color: var(--color-light); }
.btn-unity4 { background-color: var(--color-unity4); color: var(--color-light); }
.btn-unity5 { background-color: var(--color-unity5); color: var(--color-light); }

.btn-unity1:hover { background-color: var(--color-unity2); }
.btn-unity2:hover { background-color: var(--color-unity1); }
.btn-unity3:hover { background-color: var(--color-unity4); }
.btn-unity4:hover { background-color: var(--color-unity5); }
.btn-unity5:hover { background-color: var(--color-unity1); }

.bg-light-warning { background-color: rgba(255,193,7,0.15); }
.bg-light-primary { background-color: rgba(13,110,253,0.15); }
.bg-light-success { background-color: rgba(25,135,84,0.15); }
.alert-item { transition: all 0.3s; }
.alert-item:hover { transform: translateX(5px); }

/* Navegação */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    color: var(--color-dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    bottom: 0;
    width: 0;
    height: 2px;
    transition: all 0.3s ease;
    background-color: var(--color-unity3);
}

.nav-link:hover::after {
    width: calc(100% - 2rem);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-unity3);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: calc(100% - 2rem);
    height: 2px;
    background: var(--color-unity3);
}

/* Botão principal */
.btn-unity {
    background-color: var(--color-unity1);
    border: 1.5px solid var(--color-dark);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-unity:hover {
    background-color: var(--color-light);
    border-color: var(--color-dark);
    color: var(--color-dark);
    transform: translateY(-2px);
}

.form-check-input:checked, .form-check-input:checked:focus {
    background-color: var(--color-unity3) !important;
    border-color: var(--color-unity3) !important;
    box-shadow: 0 0 0 0.2rem rgba(192, 132, 252, 0.25) !important;
}

.form-check-input:focus {
    border-color: var(--color-unity3) !important;
    box-shadow: 0 0 0 0.2rem rgba(192, 132, 252, 0.25) !important;
}

.form-check-input:focus {
    outline: var(--color-unity3) !important;
}

/* Dashboard Controls */
.dashboard-controls {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.dashboard-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.dashboard-card .card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

.dashboard-card .card-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Estilos para a votação de prioridades */
.priority-voting .list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1rem;
}

.priority-voting .list-group-item:first-child {
    border-top: none;
}

.priority-voting .list-group-item:last-child {
    border-bottom: none;
}

/* Estilos para o rastreador de demandas */
.demand-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.demand-item:last-child {
    border-bottom: none;
}

.demand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.demand-title {
    font-weight: 500;
}

.demand-progress {
    margin-top: 0.5rem;
}

/* Estilos para botões personalizados */
.btn-outline-unity3 {
    color: var(--color-unity3);
    border-color: var(--color-unity3);
}

.btn-outline-unity3:hover {
    background-color: var(--color-unity3);
    color: white;
}

.progress-bar {
    color: black;
    overflow: visible;
}

/* Forum Styles */
.forum-header {
    background: linear-gradient(135deg, var(--color-unity3), var(--color-unity1));
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.nav-pills .nav-link.active {
    background-color: var(--color-unity1);
}

.nav-pills .nav-link.active::after {
    display: none;
}

.nav-pills .nav-link {
    color: var(--color-unity1);
}

.discussion-card {
    border-left: 4px solid var(--color-unity3);
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.discussion-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

.page-item.active .page-link {
    background-color: var(--color-unity1) !important;
    border-color: var(--color-unity1) !important;
}

.page-link {
    color: var(--color-unity1);
}

.bg-primary {
    background: var(--color-unity2) !important;
}

.border-primary {
    border-color: var(--color-unity2) !important;
}

.priority-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.priority-high {
    background-color: #ffebee;
    color: #c62828;
}

.priority-medium {
    background-color: #fff8e1;
    color: #f57f17;
}

.priority-low {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.vote-btn {
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s;
}

.vote-btn:hover {
    transform: scale(1.1);
}

.vote-count {
    font-weight: bold;
    margin: 0 0.5rem;
}

.progress-thin {
    height: 8px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Painel de login */
.login-panel {
    background: linear-gradient(rgba(75, 66, 120, 0.8), rgba(75, 66, 120, 0.8)), 
                url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    color: white;
}

.login-panel h1 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.login-panel p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.card-login {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
}

/* Login social */
.social-login .btn {
    border-radius: 50px;
    padding: 0.7rem;
}

/* Seção superior */
.top-section {
    padding: 5rem 0 3rem;
    background-color: #f8f9fa;
}

.top-title {
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-unity3);
}

.top-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #666;
}

.top-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.2));
    border-radius: 10px;
}

/* Recursos e destaques */
.feature-icon {
    background: var(--color-unity3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    border-left: 4px solid var(--color-unity5);
    padding-left: 1rem;
}

.feature-text {
    margin-left: 1rem;
}

.feature-text strong {
    color: var(--color-unity3);
}

.section-title {
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-unity3);
}

/* Contato */
.contact-top {
    background-color: var(--color-light);
    padding: 5rem 0;
}

.contact-form {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 2.5rem;
}

.contact-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    padding: 1.5rem;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(75, 66, 120, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-unity3);
    margin-bottom: 1.5rem;
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 300px;
}

/* Cartões e prioridades */
.card-feature, .priority-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.card-feature:hover, .priority-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    color: var(--color-unity1);
    font-weight: 700;
}

.priority-card {
    position: relative;
    border-top: 4px solid transparent;
    cursor: pointer;
}

.priority-card.urgent { border-top-color: #dc3545; }
.priority-card.high   { border-top-color: #ffc107; }
.priority-card.medium { border-top-color: #0d6efd; }
.priority-card.low    { border-top-color: #198754; }

.priority-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
}

/* Formulários */
.form-section {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.form-header {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.urgent-form .form-header {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
}

.high-form .form-header {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
}

.medium-form .form-header {
    background-color: rgba(13, 110, 253, 0.1);
    border-left: 4px solid #0d6efd;
}

.low-form .form-header {
    background-color: rgba(25, 135, 84, 0.1);
    border-left: 4px solid #198754;
}

/* Imagem com sombra */
.img-relato-container {
    position: relative;
    width: 100%;
    max-width: 620px;
    height: 420px;
}

.img-relato-shadow {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    background-color: rgba(75, 66, 120, 0.1);
    border-radius: 15px;
    z-index: 1;
}

.img-relato {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Dicas */
.badge-unity {
    background-color: var(--color-unity3);
    color: white;
}

.tips-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tips-card ul {
    list-style: none;
    padding-left: 1.5rem;
}

.tips-card ul li {
    position: relative;
    margin-bottom: 0.8rem;
}

.tips-card ul li:before {
    content: "•";
    color: var(--color-unity3);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    font-size: 1.2rem;
}

/* Cadastro */
.signup-section {
    padding: 5rem 0;
}

.signup-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.signup-header {
    background-color: var(--color-unity3);
    color: white;
    padding: 2rem;
    text-align: center;
}

.signup-form {
    padding: 2.5rem;
}

.signup-image {
    background: linear-gradient(rgba(75, 66, 120, 0.8), rgba(75, 66, 120, 0.8)), 
                url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    color: white;
}

.signup-image ul {
    list-style: none;
    padding-left: 1.5rem;
}

.signup-image ul li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.signup-image ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Divisores e links */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 1rem;
    color: #777;
    font-size: 0.9rem;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.login-link a {
    color: var(--color-unity3);
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Rodapé */
.footer {
    background: var(--color-unity1);
    color: white;
    padding-top: 4rem;
    margin-top: auto;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-unity3);
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: var(--color-unity3);
    transform: translateY(-3px);
}

.copyright {
    background: rgba(0,0,0,0.2);
    padding: 1rem 0;
    font-size: 0.9rem;
}

/* Diversos */
.arrow-up {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-light);
    right: 4rem;
    bottom: 4rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: var(--color-unity2);
    z-index: 10;
    transition: all 0.4s ease;
}

.user {
    position: fixed;
    display: flex;
    padding: 10px;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--color-light);
    right: 2rem;
    top: 0.7rem;
    width: 14rem;
    background-color: var(--color-unity4);
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.modal-header {
    background-color: var(--color-unity3);
    color: white;
}

.fade-up {
    opacity: 0;
    animation: fade-up 0.6s ease-in-out forwards;
}

@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 991.98px) {
    .login-panel, .signup-image {
        display: none;
    }

    .login-form, .signup-form {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .top-title {
        font-size: 2.5rem;
    }

    .top-section, .contact-top {
        padding: 3rem 0;
    }

    .navbar-brand img {
        height: 40px;
    }

    .priority-card {
        margin-bottom: 1.5rem;
    }

    .signup-header {
        padding: 1.5rem;
    }

    .signup-header h1 {
        font-size: 1.8rem;
    }
    
    .dashboard-card {
        margin-bottom: 1.5rem;
    }
}