/* Custom CSS - Franchi Fintech Design */
:root {
    --franchi-primary: #0066cc;
    --franchi-primary-dark: #0052a3;
    --franchi-primary-light: #3385d6;
    --franchi-secondary: #003d7a;
    --franchi-accent: #00a8ff;
    --franchi-bg-light: #f8f9fa;
    --franchi-text: #1a1a1a;
    --franchi-text-light: #6c757d;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--franchi-bg-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

main {
    flex: 1;
    background-color: #ffffff;
}

.hero-section {
    background: linear-gradient(135deg, var(--franchi-primary) 0%, var(--franchi-secondary) 100%);
    color: white;
    padding: 100px 0;
}

.feature-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
}

/* Navbar Styles */
.navbar {
    background-color: var(--franchi-primary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

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

.nav-link {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 5px;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
}

.nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Button Styles - Modernos e com ID Visual */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Primary Button - Azul Franchi */
.btn-primary {
    background: linear-gradient(135deg, var(--franchi-primary) 0%, var(--franchi-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--franchi-primary-dark) 0%, var(--franchi-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
    color: white;
}

.btn-primary:focus {
    background: linear-gradient(135deg, var(--franchi-primary) 0%, var(--franchi-primary-dark) 100%);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.5);
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.35);
    color: white;
}

.btn-success:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.35);
    color: white;
}

.btn-danger:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #212529;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.25);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.35);
    color: #212529;
}

.btn-warning:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);
}

/* Secondary Button */
.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.25);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.35);
    color: white;
}

.btn-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5);
}

/* Outline Buttons */
.btn-outline-primary {
    border: 2px solid var(--franchi-primary);
    color: var(--franchi-primary);
    background: transparent;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.1);
}

.btn-outline-primary:hover {
    background: var(--franchi-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    background: transparent;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1);
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.1);
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Button Sizes */
.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
    border-radius: 10px;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Disabled Buttons */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Button with Icon */
.btn i {
    margin-right: 0.5rem;
}

.btn i:only-child {
    margin-right: 0;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    border-radius: 8px;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.12);
}

/* Table Styles - Design Profissional */
.table {
    color: var(--franchi-text);
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background-color: #fff;
}

.table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.table thead th {
    background: linear-gradient(135deg, var(--franchi-primary) 0%, var(--franchi-primary-dark) 100%);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 1rem 1.25rem;
    white-space: nowrap;
    position: relative;
}

.table thead th:first-child {
    border-top-left-radius: 8px;
}

.table thead th:last-child {
    border-top-right-radius: 8px;
}

.table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #e9ecef;
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: rgba(0, 102, 204, 0.08);
    transform: scale(1.001);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-top: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9375rem;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Striped table rows */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.table-striped tbody tr:nth-of-type(odd):hover {
    background-color: rgba(0, 102, 204, 0.08);
}

/* Hover table rows */
.table-hover tbody tr {
    cursor: pointer;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 102, 204, 0.1);
}

/* Table responsive wrapper */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table-responsive .table {
    margin-bottom: 0;
}

/* Table with borders */
.table-bordered {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.table-bordered thead th {
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.table-bordered tbody td {
    border: 1px solid #f0f0f0;
}

/* Empty state */
.table tbody tr.empty-row td {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
    font-style: italic;
}

/* Action buttons in table */
.table tbody td .btn {
    margin: 0 2px;
}

.table tbody td .btn-group .btn {
    margin: 0;
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 4px;
}

/* Progress Bar */
.progress {
    background-color: #e9ecef;
    border-radius: 4px;
}

.progress-bar {
    background-color: var(--franchi-primary);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Footer */
footer {
    background-color: var(--franchi-primary) !important;
}

/* Links */
a {
    color: var(--franchi-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--franchi-primary-dark);
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--franchi-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}