/* ======= BASE ======= */
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #111827;
}

.page {
    min-height: 100vh;
    background-color: #f3f4f6;
}

.fullscreen-center {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ======= TOPBAR ======= */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #111827;
    color: #fff;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 22px;
    margin-right: 8px;
}

.logo-text {
    font-weight: 600;
    font-size: 18px;
}

.user-info {
    font-size: 14px;
    margin-right: 8px;
}

/* ======= LAYOUT ======= */
.content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.hero h1 {
    margin: 0 0 10px 0;
}

.hero p {
    margin: 0;
    color: #4b5563;
}

.hero-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ======= CARDS ======= */
.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.stat-card h3 {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.stat-card .stat-number {
    margin-top: 10px;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

/* ======= FORM ======= */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

/* ======= BOTÕES ======= */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.btn-primary {
    background-color: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #4b5563;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #374151;
}

.btn-light {
    background-color: #e5e7eb;
    color: #111827;
}

.btn-light:hover {
    background-color: #d1d5db;
}

.btn:active {
    transform: scale(0.98);
}

.full-width {
    width: 100%;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}

/* ======= ALERTAS ======= */
.alert {
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
}

.alert-warning {
    background-color: #fef9c3;
    color: #92400e;
}

/* ======= TABELA ======= */
.table-results {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table-results th,
.table-results td {
    border: 1px solid #e5e7eb;
    padding: 6px 8px;
}

.table-results th {
    background-color: #f3f4f6;
    text-align: left;
    font-weight: 600;
    color: #374151;
}

.table-results tbody tr:nth-child(odd) {
    background-color: #f9fafb;
}

.table-results tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.table-results tbody tr:hover {
    background-color: #e5f0ff;
}

/* ======= LOGIN / INTRO ======= */
.login-logo {
    font-size: 40px;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    margin-bottom: 20px;
    color: #6b7280;
}

.credentials-info {
    margin-top: 15px;
    font-size: 13px;
    background-color: #eef2ff;
    padding: 10px;
    border-radius: 8px;
}

/* Tela de abertura */
.intro-container {
    text-align: center;
    color: #fff;
}

.intro-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    margin: 0 auto 15px;
}

.intro-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
}

.intro-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.intro-footer {
    margin-top: 25px;
    font-size: 13px;
    opacity: 0.8;
}

/* ======= AUTOCOMPLETE ======= */
.autocomplete-list {
    position: relative;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-top: 2px;
    max-height: 150px;
    overflow-y: auto;
    font-size: 13px;
    display: none;
    z-index: 10;
}

.autocomplete-item {
    padding: 6px 8px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: #e5e7eb;
}