/* Reset e Variáveis */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-color: #e2e8f0;
    --text-color: #334155;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, 'MS Sans Serif', Geneva, Verdana, sans-serif;
    /* Background tipo desktop Windows XP com gradiente */
    background: linear-gradient(180deg,
        #5b9bd5 0%,
        #3b7fb8 30%,
        #2c6ea4 60%,
        #4a9fd8 85%,
        #6db3e8 100%
    );
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Animações suaves */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .table, .form-group {
    animation: fadeIn 0.3s ease-out;
}

/* Navbar - Estilo barra de tarefas Windows XP */
.navbar {
    background: linear-gradient(180deg, #245edb 0%, #3f8cf3 10%, #245edb 50%, #1941a5 100%);
    color: white;
    padding: 0;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border-bottom: 1px solid #003c74;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1rem 0;
    display: block;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 0;
}

.navbar-menu li {
    position: relative;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    padding: 1.2rem 1.5rem;
    display: block;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    position: relative;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.05) 100%);
    border-left: 2px solid rgba(255,255,255,0.3);
    border-right: 2px solid rgba(0,0,0,0.2);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

/* Dropdown - Estilo menu Windows XP */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ece9d8;
    min-width: 200px;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.8),
        inset -1px -1px 0 rgba(0,0,0,0.2),
        4px 4px 12px rgba(0,0,0,0.3);
    list-style: none;
    z-index: 1000;
    padding: 2px;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: menuSlide 0.15s ease-out;
}

@keyframes menuSlide {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu a {
    color: #000000;
    padding: 0.5rem 1.5rem 0.5rem 2rem;
    text-shadow: none;
    position: relative;
}

.dropdown-menu a:hover {
    background: linear-gradient(180deg, #3d95ff 0%, #1f72f0 100%);
    color: #ffffff;
    border: 1px solid #0050ee;
    margin: -1px;
    padding: calc(0.5rem + 1px) calc(1.5rem + 1px) calc(0.5rem + 1px) calc(2rem + 1px);
}

/* Container - Área de trabalho Windows */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
    position: relative;
}

/* Cards - Janelas estilo Windows 95/XP */
.card {
    background: linear-gradient(135deg, #d4d4d4 0%, #ececec 100%);
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.8),
        inset -1px -1px 0 rgba(0,0,0,0.2),
        4px 4px 12px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
    border-radius: 0;
    animation: windowAppear 0.3s ease-out;
}

.card-header {
    background: linear-gradient(180deg, #0997ff 0%, #0053ee 50%, #0050ee 51%, #004ddb 100%);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #003c74;
    position: relative;
}

.card-header h2 {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    margin: 0;
    line-height: 1.8;
}

.card-header h3 {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    margin: 0;
    line-height: 1.8;
}

.card-body {
    padding: 1.5rem;
    background: #ece9d8;
}

/* Buttons - Estilo Windows XP com efeito 3D */
.btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.15s ease;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
    position: relative;
}

.btn:hover {
    filter: brightness(1.05);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(180deg, #3d95ff 0%, #2563eb 45%, #1d4ed8 50%, #1e40af 100%);
    color: white;
    border-color: #5ca8ff #0f3b99 #0f3b99 #5ca8ff;
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.4),
        inset -1px -1px 0 rgba(0,0,0,0.3),
        2px 2px 4px rgba(0,0,0,0.3);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.btn-primary:active {
    background: linear-gradient(180deg, #1e40af 0%, #1d4ed8 45%, #2563eb 50%, #3d95ff 100%);
    border-color: #0f3b99 #5ca8ff #5ca8ff #0f3b99;
    box-shadow:
        inset -1px -1px 0 rgba(255,255,255,0.3),
        inset 2px 2px 4px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 45%, #d0d0d0 50%, #c8c8c8 100%);
    color: #000000;
    border-color: #ffffff #404040 #404040 #ffffff;
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.9),
        inset -1px -1px 0 rgba(0,0,0,0.3),
        2px 2px 4px rgba(0,0,0,0.2);
}

.btn-secondary:active {
    background: linear-gradient(180deg, #c8c8c8 0%, #d0d0d0 45%, #d8d8d8 50%, #e0e0e0 100%);
    border-color: #404040 #ffffff #ffffff #404040;
    box-shadow:
        inset -1px -1px 0 rgba(255,255,255,0.5),
        inset 2px 2px 4px rgba(0,0,0,0.2);
}

.btn-success {
    background: linear-gradient(180deg, #34d399 0%, #10b981 45%, #059669 50%, #047857 100%);
    color: white;
    border-color: #6ee7b7 #065f46 #065f46 #6ee7b7;
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.4),
        inset -1px -1px 0 rgba(0,0,0,0.3),
        2px 2px 4px rgba(0,0,0,0.3);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.btn-success:active {
    background: linear-gradient(180deg, #047857 0%, #059669 45%, #10b981 50%, #34d399 100%);
    border-color: #065f46 #6ee7b7 #6ee7b7 #065f46;
    box-shadow:
        inset -1px -1px 0 rgba(255,255,255,0.3),
        inset 2px 2px 4px rgba(0,0,0,0.3);
}

.btn-danger {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 45%, #dc2626 50%, #b91c1c 100%);
    color: white;
    border-color: #fca5a5 #7f1d1d #7f1d1d #fca5a5;
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.4),
        inset -1px -1px 0 rgba(0,0,0,0.3),
        2px 2px 4px rgba(0,0,0,0.3);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.btn-danger:active {
    background: linear-gradient(180deg, #b91c1c 0%, #dc2626 45%, #ef4444 50%, #f87171 100%);
    border-color: #7f1d1d #fca5a5 #fca5a5 #7f1d1d;
    box-shadow:
        inset -1px -1px 0 rgba(255,255,255,0.3),
        inset 2px 2px 4px rgba(0,0,0,0.3);
}

.btn-warning {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 45%, #d97706 50%, #b45309 100%);
    color: white;
    border-color: #fde68a #78350f #78350f #fde68a;
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.4),
        inset -1px -1px 0 rgba(0,0,0,0.3),
        2px 2px 4px rgba(0,0,0,0.3);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.btn-warning:active {
    background: linear-gradient(180deg, #b45309 0%, #d97706 45%, #f59e0b 50%, #fbbf24 100%);
    border-color: #78350f #fde68a #fde68a #78350f;
    box-shadow:
        inset -1px -1px 0 rgba(255,255,255,0.3),
        inset 2px 2px 4px rgba(0,0,0,0.3);
}

.btn-info {
    background: linear-gradient(180deg, #22d3ee 0%, #06b6d4 45%, #0891b2 50%, #0e7490 100%);
    color: white;
    border-color: #67e8f9 #164e63 #164e63 #67e8f9;
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.4),
        inset -1px -1px 0 rgba(0,0,0,0.3),
        2px 2px 4px rgba(0,0,0,0.3);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.btn-info:active {
    background: linear-gradient(180deg, #0e7490 0%, #0891b2 45%, #06b6d4 50%, #22d3ee 100%);
    border-color: #164e63 #67e8f9 #67e8f9 #164e63;
    box-shadow:
        inset -1px -1px 0 rgba(255,255,255,0.3),
        inset 2px 2px 4px rgba(0,0,0,0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #ffffff;
}

.btn-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Tables - Estilo Windows 95/XP */
.table-responsive {
    overflow-x: auto;
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow:
        inset 1px 1px 0 rgba(0,0,0,0.2),
        inset -1px -1px 0 rgba(255,255,255,0.8);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.table th,
.table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border: 1px solid #d4d4d4;
}

.table th {
    background: linear-gradient(180deg, #e8e8e8 0%, #d4d4d4 100%);
    font-weight: 600;
    color: #000000;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
    border-bottom: 2px solid #808080;
}

.table tbody tr:hover {
    background: linear-gradient(180deg, #3d95ff 0%, #1f72f0 100%);
    color: #ffffff;
}

.table tbody tr:hover td {
    border-color: #0050ee;
}

/* Forms - Estilo Windows XP */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #000000;
    font-size: 0.85rem;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.form-control,
.search-input,
select {
    width: 100%;
    padding: 0.5rem 0.6rem;
    font-size: 0.95rem;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: #ffffff;
    border: 2px solid;
    border-color: #7f9db9 #d4d4d4 #d4d4d4 #7f9db9;
    box-shadow:
        inset 1px 1px 2px rgba(0,0,0,0.1),
        inset -1px -1px 0 rgba(255,255,255,0.5);
    box-sizing: border-box;
    transition: all 0.2s ease;
    border-radius: 0;
}

.form-control:focus,
.search-input:focus,
select:focus {
    outline: none;
    border-color: #0078d7 #a0c8e8 #a0c8e8 #0078d7;
    box-shadow:
        inset 1px 1px 3px rgba(0,120,215,0.2),
        0 0 0 1px #0078d7;
    background: #ffffff;
}

.form-control:hover,
.search-input:hover,
select:hover {
    border-color: #6c8ca8 #c0c0c0 #c0c0c0 #6c8ca8;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.col-md-2 { flex: 0 0 16.666%; }
.col-md-3 { flex: 0 0 25%; }
.col-md-4 { flex: 0 0 33.333%; }
.col-md-6 { flex: 0 0 50%; }
.col-md-8 { flex: 0 0 66.666%; }

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Alerts - Estilo Windows XP */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid;
    border-radius: 0;
    font-size: 0.9rem;
    animation: alertSlide 0.3s ease-out;
}

.alert-success {
    background: #c0ffc0;
    border-color: #00ff00 #008b00 #008b00 #00ff00;
    color: #006400;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.5);
}

.alert-error {
    background: #ffc0c0;
    border-color: #ff0000 #8b0000 #8b0000 #ff0000;
    color: #8b0000;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.5);
}

.alert-warning {
    background: #ffffcc;
    border-color: #ffff00 #cccc00 #cccc00 #ffff00;
    color: #8b8b00;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.5);
}

.alert-info {
    background: #c0e0ff;
    border-color: #87ceeb #4682b4 #4682b4 #87ceeb;
    color: #003366;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.5);
}

/* Badges - Estilo Windows 95 */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 0;
    text-transform: uppercase;
    border: 2px solid;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.5);
    text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
}

.badge-success {
    background: #90ee90;
    border-color: #7cfc00 #228b22 #228b22 #7cfc00;
    color: #006400;
}

.badge-danger {
    background: #ff6b6b;
    border-color: #ff8888 #cc0000 #cc0000 #ff8888;
    color: #8b0000;
}

.badge-warning {
    background: #ffd93d;
    border-color: #ffed4e #cc8800 #cc8800 #ffed4e;
    color: #8b4500;
}

.badge-info {
    background: #6eb5ff;
    border-color: #87ceeb #1e5a8e #1e5a8e #87ceeb;
    color: #003366;
}

/* Modal - Janela estilo Windows XP */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
    backdrop-filter: blur(3px);
    animation: fadeInBackdrop 0.2s ease-out;
}

@keyframes fadeInBackdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #d4d4d4 0%, #ececec 100%);
    margin: 3% auto;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.8),
        inset -1px -1px 0 rgba(0,0,0,0.2),
        6px 6px 20px rgba(0,0,0,0.4);
    width: 90%;
    max-width: 600px;
    animation: windowAppear 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 0;
}

.modal-large {
    max-width: 98%;
    width: 98%;
    margin: 1% auto;
    height: 98vh;
    display: flex;
    flex-direction: column;
}

.modal-large .modal-body {
    max-height: none;
    flex: 1;
    overflow-y: auto;
}

.modal-medium {
    max-width: 600px;
    width: 90%;
}

#modalNovaDivida {
    z-index: 1100;
}

.modal-header {
    background: linear-gradient(180deg, #0997ff 0%, #0053ee 50%, #0050ee 51%, #004ddb 100%);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #003c74;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    margin: 0;
    line-height: 1.8;
}

.modal-close {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    width: 21px;
    height: 21px;
    line-height: 18px;
    text-align: center;
    background: linear-gradient(180deg, #e8722e 0%, #d1440c 100%);
    border: 1px solid;
    border-color: #ff9966 #8b3a0a #8b3a0a #ff9966;
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.4),
        1px 1px 2px rgba(0,0,0,0.3);
}

.modal-close:hover {
    background: linear-gradient(180deg, #ff8844 0%, #e85020 100%);
}

.modal-close:active {
    background: linear-gradient(180deg, #c13000 0%, #e85020 100%);
    border-color: #8b3a0a #ff9966 #ff9966 #8b3a0a;
    box-shadow:
        inset -1px -1px 0 rgba(255,255,255,0.3),
        inset 1px 1px 2px rgba(0,0,0,0.3);
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    background: #ece9d8;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    background: #ece9d8;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

/* Dashboard - Estilo Windows XP */
.dashboard-header {
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dashboard-header h1 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: 2rem;
}

.dashboard-header p {
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.search-section {
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-results {
    display: none;
    background: #ece9d8;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.8),
        4px 4px 12px rgba(0,0,0,0.3);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.list-group {
    list-style: none;
}

.list-group-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #d4d4d4;
    cursor: pointer;
    transition: all 0.15s;
    background: #ffffff;
}

.list-group-item:hover {
    background: linear-gradient(180deg, #3d95ff 0%, #1f72f0 100%);
    color: #ffffff;
    border-bottom-color: #0050ee;
}

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

/* Page Header - Estilo Windows */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.page-header h1 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: 1.8rem;
    margin: 0;
}

/* Footer - Estilo barra de tarefas Windows */
.footer {
    background: linear-gradient(180deg, #245edb 0%, #3f8cf3 10%, #245edb 50%, #1941a5 100%);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 3rem;
    border-top: 1px solid #003c74;
    box-shadow:
        0 -2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Responsive - Adaptação para mobile mantendo estilo retro */
@media (max-width: 768px) {
    body {
        background: linear-gradient(180deg,
            #5b9bd5 0%,
            #3b7fb8 50%,
            #2c6ea4 100%
        );
    }

    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-menu {
        flex-direction: column;
        width: 100%;
    }

    .navbar-menu a {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .navbar-user {
        width: 100%;
        justify-content: space-between;
        padding: 0.8rem 1rem;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .container {
        margin: 1rem auto;
        padding: 0 10px;
    }

    .card {
        margin-bottom: 1rem;
    }

    .card-header h2 {
        font-size: 0.85rem;
    }

    .card-body {
        padding: 1rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row .form-group {
        width: 100%;
    }

    .page-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        padding: 0.75rem 1rem;
    }

    .page-header h1 {
        font-size: 1.3rem;
    }

    .dashboard-header {
        padding: 1rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-header h2 {
        font-size: 0.85rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .search-box {
        flex-direction: column;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .table th,
    .table td {
        padding: 0.4rem 0.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .situacao-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Situação Cliente Modal - Estilo Windows */
.situacao-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.situacao-card {
    background: #ffffff;
    padding: 0.75rem;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow:
        inset 1px 1px 0 rgba(0,0,0,0.1),
        2px 2px 4px rgba(0,0,0,0.2);
}

.situacao-card h4 {
    font-size: 0.75rem;
    color: #666666;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    font-weight: 600;
}

.situacao-card p {
    font-size: 1.1rem;
    font-weight: bold;
    color: #000000;
    margin: 0;
}

.dividas-section {
    margin-top: 1.5rem;
}

#listaDividas {
    overflow-y: auto;
    padding-right: 0.5rem;
}

.dividas-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.dividas-filters select,
.dividas-filters input {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
}

.divida-item {
    background: #ffffff;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow:
        inset 1px 1px 0 rgba(0,0,0,0.1),
        2px 2px 4px rgba(0,0,0,0.2);
    border-left: 4px solid #0891b2;
}

.divida-item.vencida {
    border-left-color: #ef4444;
    background: #ffe8e8;
}

.divida-item.quitada {
    border-left-color: #10b981;
    background: #e8ffe8;
}

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

.divida-actions {
    display: flex;
    gap: 0.25rem;
}

/* Spinner de loading - Estilo Windows XP */
.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 4px solid #d4d4d4;
    border-top: 4px solid #0078d7;
    border-right: 4px solid #0078d7;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    box-shadow: 0 0 10px rgba(0,120,215,0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Login Page - Design Retro-Moderno (Inspirado em Windows 95/XP)
   ========================================================================== */

.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Background tipo Windows XP "Bliss" modernizado */
    background: linear-gradient(180deg,
        #5b9bd5 0%,
        #3b7fb8 25%,
        #2c6ea4 50%,
        #4a9fd8 75%,
        #6db3e8 100%
    );
    font-family: 'Segoe UI', Tahoma, 'MS Sans Serif', Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Efeito de nuvens sutis no background */
.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse 800px 400px at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(ellipse 600px 300px at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: floatClouds 30s ease-in-out infinite alternate;
}

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

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* Janela estilo Windows 95/XP com bordas 3D */
.login-box {
    background: linear-gradient(135deg, #d4d4d4 0%, #ececec 100%);
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.8),
        inset -1px -1px 0 rgba(0,0,0,0.2),
        4px 4px 12px rgba(0,0,0,0.3),
        8px 8px 24px rgba(0,0,0,0.15);
    padding: 0;
    animation: windowAppear 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

@keyframes windowAppear {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    60% {
        transform: scale(1.02) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Barra de título estilo Windows XP */
.login-header {
    background: linear-gradient(180deg, #0997ff 0%, #0053ee 50%, #0050ee 51%, #004ddb 100%);
    padding: 6px 8px;
    border-bottom: 1px solid #003c74;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    position: relative;
}

/* Ícone da janela */
.login-header::before {
    content: '⚡';
    font-size: 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.login-header h1 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    letter-spacing: 0.3px;
    flex: 1;
}

.login-header p {
    display: none;
}

/* Conteúdo da janela */
.login-form {
    padding: 2rem 2.5rem;
    background: #ece9d8;
    border-top: 1px solid #ffffff;
}

/* Área do logo/título do sistema */
.login-form::before {
    content: '🖥️ Sistema de Gestão';
    display: block;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #003c74;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
}

.login-form::after {
    content: 'Faça login para continuar';
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #000000;
    font-size: 0.85rem;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

/* Inputs estilo Windows 95/XP com borda inset */
.login-form input {
    width: 100%;
    padding: 0.5rem 0.6rem;
    font-size: 0.95rem;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: #ffffff;
    border: 2px solid;
    border-color: #7f9db9 #d4d4d4 #d4d4d4 #7f9db9;
    box-shadow:
        inset 1px 1px 2px rgba(0,0,0,0.1),
        inset -1px -1px 0 rgba(255,255,255,0.5);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #0078d7 #a0c8e8 #a0c8e8 #0078d7;
    box-shadow:
        inset 1px 1px 3px rgba(0,120,215,0.2),
        0 0 0 1px #0078d7;
    background: #ffffff;
}

/* Botão estilo Windows XP com efeito 3D */
.login-form .btn-block {
    width: 100%;
    padding: 0.65rem 1.2rem;
    background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 45%, #d0d0d0 50%, #c8c8c8 100%);
    color: #000000;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
    border: 2px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.9),
        inset -1px -1px 0 rgba(0,0,0,0.3),
        2px 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 1.5rem;
    position: relative;
}

.login-form .btn-block:hover {
    background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 45%, #d8d8d8 50%, #d0d0d0 100%);
    border-color: #ffffff #303030 #303030 #ffffff;
}

.login-form .btn-block:active {
    background: linear-gradient(180deg, #c8c8c8 0%, #d0d0d0 45%, #d8d8d8 50%, #e0e0e0 100%);
    border-color: #404040 #ffffff #ffffff #404040;
    box-shadow:
        inset -1px -1px 0 rgba(255,255,255,0.5),
        inset 2px 2px 4px rgba(0,0,0,0.2);
    transform: translateY(1px);
}

/* Destaque azul Windows XP no botão */
.login-form .btn-block::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #0078d7;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,120,215,0.6);
}

/* Alerts estilo Windows */
.login-page .alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    border: 2px solid;
    animation: alertSlide 0.3s ease-out;
}

@keyframes alertSlide {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-page .alert-error {
    background: #ffc0c0;
    border-color: #ff0000 #8b0000 #8b0000 #ff0000;
    color: #8b0000;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.5);
}

.login-page .alert-success {
    background: #c0ffc0;
    border-color: #00ff00 #008b00 #008b00 #00ff00;
    color: #006400;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.5);
}

/* Footer estilo Windows */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.login-footer p {
    margin: 0;
    color: #ffffff;
    font-size: 0.75rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Responsividade */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }

    .login-box {
        box-shadow:
            inset 1px 1px 0 rgba(255,255,255,0.8),
            inset -1px -1px 0 rgba(0,0,0,0.2),
            3px 3px 8px rgba(0,0,0,0.3);
    }

    .login-form {
        padding: 1.5rem 1.75rem;
    }

    .login-form::before {
        font-size: 1rem;
    }

    .login-header h1 {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Statistics Cards - Cards de Estatísticas com Gradientes
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Cards de Estatísticas - Estilo Windows 95/XP */
.stat-card {
    padding: 0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    border-radius: 0;
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.8),
        inset -1px -1px 0 rgba(0,0,0,0.2),
        3px 3px 8px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.stat-card:hover {
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.8),
        inset -1px -1px 0 rgba(0,0,0,0.2),
        4px 4px 12px rgba(0,0,0,0.4);
}

/* Header do stat-card (estilo barra de título) */
.stat-card h3 {
    background: linear-gradient(180deg, #0997ff 0%, #0053ee 50%, #0050ee 51%, #004ddb 100%);
    color: #ffffff;
    margin: 0;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    border-bottom: 1px solid #003c74;
}

/* Corpo do stat-card */
.stat-card p {
    background: #ece9d8;
    color: #000000;
    margin: 0;
    padding: 1.5rem 0.75rem 0.5rem 0.75rem;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

.stat-card small {
    display: block;
    background: #ece9d8;
    color: #666666;
    padding: 0 0.75rem 1rem 0.75rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Ícones/Cores por tipo (usando bordas coloridas sutis) */
.stat-card-purple h3 {
    background: linear-gradient(180deg, #7b68ee 0%, #6a5acd 50%, #6959cd 51%, #5a4db8 100%);
}

.stat-card-pink h3 {
    background: linear-gradient(180deg, #ff69b4 0%, #ff1493 50%, #ff1390 51%, #db0f7e 100%);
}

.stat-card-blue h3 {
    background: linear-gradient(180deg, #1e90ff 0%, #0070e0 50%, #006ede 51%, #005ec8 100%);
}

.stat-card-orange h3 {
    background: linear-gradient(180deg, #ff8c00 0%, #ff7f00 50%, #ff7e00 51%, #db6e00 100%);
}

/* ==========================================================================
   Utility Classes - Classes Utilitárias
   ========================================================================== */

/* Flexbox utilities */
.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* Spacing utilities */
.mr-1 { margin-right: 0.5rem; }
.ml-1 { margin-left: 0.5rem; }
.mr-2 { margin-right: 1rem; }
.ml-2 { margin-left: 1rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

/* Display utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }

/* Text utilities */
.text-uppercase { text-transform: uppercase; }
.text-danger { color: var(--danger-color); }
.font-weight-bold { font-weight: bold; }

/* Loading state */
.loading-container {
    text-align: center;
    padding: 3rem;
}

.loading-text {
    margin-top: 1rem;
    color: #6c757d;
}

/* Select and input controls */
.control-inline {
    padding: 0.25rem 0.5rem;
}

.control-inline-mr {
    padding: 0.25rem 0.5rem;
    margin-right: 1rem;
}

/* ==========================================================================
   SweetAlert2 Customização Retro Windows 95/XP
   ========================================================================== */

/* Popup principal */
.swal-retro-popup {
    background: linear-gradient(135deg, #d4d4d4 0%, #ececec 100%) !important;
    border: 2px solid !important;
    border-color: #ffffff #808080 #808080 #ffffff !important;
    border-radius: 0 !important;
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.8),
        inset -1px -1px 0 rgba(0,0,0,0.2),
        6px 6px 20px rgba(0,0,0,0.4) !important;
    padding: 0 !important;
    font-family: 'Segoe UI', Tahoma, 'MS Sans Serif', Arial, sans-serif !important;
}

/* Header do alerta (título) */
.swal-retro-header {
    background: linear-gradient(180deg, #0997ff 0%, #0053ee 50%, #0050ee 51%, #004ddb 100%) !important;
    padding: 0.5rem 1rem !important;
    border-bottom: 1px solid #003c74 !important;
    margin: 0 !important;
}

/* Título */
.swal-retro-title {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Conteúdo */
.swal-retro-content {
    background: #ece9d8 !important;
    padding: 1.5rem !important;
    color: #000000 !important;
}

/* Ícones customizados */
.swal2-icon {
    border-width: 3px !important;
}

/* Ações (botões) */
.swal-retro-actions {
    background: #ece9d8 !important;
    padding: 0 1.5rem 1.5rem 1.5rem !important;
    margin: 0 !important;
    gap: 0.5rem !important;
}

/* Input customizado */
.swal2-input,
.swal2-textarea {
    border: 2px solid !important;
    border-color: #7f9db9 #d4d4d4 #d4d4d4 #7f9db9 !important;
    border-radius: 0 !important;
    box-shadow:
        inset 1px 1px 2px rgba(0,0,0,0.1),
        inset -1px -1px 0 rgba(255,255,255,0.5) !important;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

.swal2-input:focus,
.swal2-textarea:focus {
    border-color: #0078d7 #a0c8e8 #a0c8e8 #0078d7 !important;
    box-shadow:
        inset 1px 1px 3px rgba(0,120,215,0.2),
        0 0 0 1px #0078d7 !important;
}

/* Validação */
.swal2-validation-message {
    background: #ffc0c0 !important;
    border: 2px solid !important;
    border-color: #ff0000 #8b0000 #8b0000 #ff0000 !important;
    border-radius: 0 !important;
    color: #8b0000 !important;
    font-size: 0.85rem !important;
}

/* Timer progress bar */
.swal2-timer-progress-bar {
    background: #0078d7 !important;
}
