:root {
    --oe-primary: #0d6efd;
    --oe-dark-blue: #0a2540;
    --oe-cyan: #0dcaf0;
    --oe-light-blue: #e7f1ff;
    --oe-white: #ffffff;
    --oe-gray-light: #f8f9fa;
    --oe-gray-medium: #e9ecef;
    --oe-gray-dark: #495057;
    --oe-success: #198754;
    --oe-warning: #ffc107;
    --oe-danger: #dc3545;
    --oe-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --oe-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --oe-shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --oe-radius-md: 8px;
    --oe-radius-lg: 12px;
    --oe-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.ouvidoria-module {
    font-family: 'Inter', sans-serif;
    background-color: var(--oe-gray-light);
    color: var(--oe-gray-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Topbar */
.oe-topbar {
    background-color: var(--oe-dark-blue);
    color: var(--oe-white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.oe-topbar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.oe-topbar a:hover {
    color: var(--oe-white);
}

.oe-topbar .btn-outline-light:hover {
    background-color: var(--oe-white);
    color: var(--oe-dark-blue) !important;
}

/* Navbar */
.oe-navbar {
    background-color: var(--oe-white);
    box-shadow: var(--oe-shadow-sm);
    padding: 15px 0;
}

.oe-navbar-brand {
    font-weight: 700;
    color: var(--oe-dark-blue);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.oe-nav-link {
    color: var(--oe-gray-dark);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 50px;
    transition: var(--oe-transition);
    text-decoration: none;
}

.oe-nav-link:hover, .oe-nav-link.active {
    background-color: var(--oe-light-blue);
    color: var(--oe-primary);
}

/* Hero */
.oe-hero {
    background: linear-gradient(135deg, var(--oe-dark-blue) 0%, var(--oe-primary) 100%);
    color: var(--oe-white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.oe-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background-color: var(--oe-gray-light);
    transform: skewY(-2deg);
    z-index: 1;
}

.oe-hero-content {
    position: relative;
    z-index: 2;
}

/* Cards */
.oe-card {
    background: var(--oe-white);
    border-radius: var(--oe-radius-lg);
    border: 1px solid var(--oe-gray-medium);
    padding: 30px;
    height: 100%;
    transition: var(--oe-transition);
    box-shadow: var(--oe-shadow-sm);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.oe-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--oe-shadow-md);
    border-color: var(--oe-light-blue);
}

.oe-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background-color: var(--oe-light-blue);
    color: var(--oe-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: var(--oe-transition);
}

.oe-card:hover .oe-card-icon {
    background-color: var(--oe-primary);
    color: var(--oe-white);
}

.oe-card-title {
    font-weight: 700;
    color: var(--oe-dark-blue);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.oe-card-desc {
    color: var(--oe-gray-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Forms */
.oe-form-card {
    background: var(--oe-white);
    border-radius: var(--oe-radius-lg);
    border: none;
    box-shadow: var(--oe-shadow-md);
    padding: 40px;
}

/* Force vertical stacking for all form groups within the card and grid */
.oe-form-card .mb-4,
.oe-form-card .row > div {
    display: grid !important;
    grid-template-columns: 100% !important;
    gap: 0 !important;
    margin-bottom: 1.5rem;
    align-content: start;
}

.oe-form-label {
    display: flex !important;
    align-items: center;
    font-weight: 600;
    color: var(--oe-dark-blue);
    margin-bottom: 8px !important;
    font-size: 0.9rem;
    min-height: 24px;
    line-height: 1.2;
    width: 100% !important;
    padding: 0 !important;
}

.oe-form-label i {
    width: 28px;
    height: 28px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--oe-primary);
    background-color: var(--oe-light-blue);
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.oe-form-control {
    display: block !important;
    width: 100% !important;
    border-radius: var(--oe-radius-md);
    border: 1px solid #ced4da;
    padding: 12px 15px;
    transition: var(--oe-transition);
    font-size: 0.95rem;
    color: var(--oe-gray-dark);
    background-color: var(--oe-white);
    line-height: 1.5;
    margin: 0 !important;
}

/* Exception for checkboxes and switches to keep them horizontal */
.oe-form-card .form-check {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    grid-template-columns: auto 1fr !important;
    gap: 10px !important;
    margin-bottom: 0;
}

.oe-form-card .form-check-input {
    margin-top: 0;
    margin-right: 10px;
    flex-shrink: 0;
}

.oe-form-control[type="file"] {
    padding: 7px 12px;
}

.oe-form-control:focus {
    border-color: var(--oe-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
    outline: none;
}

select.oe-form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

.oe-btn-primary {
    background-color: var(--oe-primary);
    color: var(--oe-white);
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    transition: var(--oe-transition);
    line-height: 1.5;
}

.oe-btn-primary:hover {
    background-color: var(--oe-dark-blue);
    color: var(--oe-white);
    transform: translateY(-2px);
    box-shadow: var(--oe-shadow-md);
}

/* Info Blocks */
.oe-info-block {
    background-color: var(--oe-light-blue);
    border-radius: var(--oe-radius-lg);
    padding: 30px;
    border-left: 5px solid var(--oe-primary);
}

/* Timeline */
.oe-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

.oe-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--oe-gray-medium);
}

.oe-timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.oe-timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--oe-primary);
    border: 2px solid var(--oe-white);
}

/* Footer */
.oe-footer {
    background-color: var(--oe-dark-blue);
    color: var(--oe-white);
    padding: 40px 0 20px;
    margin-top: auto;
}

.oe-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.oe-footer a:hover {
    color: var(--oe-white);
}

/* Acessibilidade */
.oe-high-contrast {
    --oe-primary: #ffff00;
    --oe-dark-blue: #000000;
    --oe-cyan: #00ffff;
    --oe-light-blue: #000000;
    --oe-white: #000000;
    --oe-gray-light: #000000;
    --oe-gray-medium: #ffffff;
    --oe-gray-dark: #ffffff;
    --oe-success: #00ff00;
    --oe-warning: #ffff00;
    --oe-danger: #ff0000;
}

.oe-high-contrast body {
    background-color: #000000;
    color: #ffffff;
}

.oe-high-contrast .oe-card,
.oe-high-contrast .oe-form-card,
.oe-high-contrast .oe-info-block {
    background-color: #000000;
    border-color: #ffffff;
    color: #ffffff;
}

.oe-high-contrast .oe-card-title,
.oe-high-contrast .oe-form-label,
.oe-high-contrast .text-dark-blue {
    color: #ffff00 !important;
}

.oe-high-contrast .oe-card-icon {
    background-color: #000000;
    color: #ffff00;
    border: 1px solid #ffff00;
}

.oe-high-contrast .oe-form-control {
    background-color: #000000;
    color: #ffffff;
    border-color: #ffffff;
}

.oe-high-contrast .oe-btn-primary {
    background-color: #000000;
    color: #ffff00;
    border: 1px solid #ffff00;
}
