/* Trading Esportivo - Estilos Custom */

:root {
    --primary: #007bff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.card-header {
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Botões */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,.3);
}

/* Match Cards */
.match-card {
    border-left: 4px solid var(--primary);
    overflow: hidden;
}

.match-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Tables */
.table {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: #f5f5f5;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--success);
    background-color: #f0f9f5;
}

.alert-danger {
    border-left-color: var(--danger);
    background-color: #fef5f5;
}

.alert-warning {
    border-left-color: var(--warning);
    background-color: #fffbf0;
}

.alert-info {
    border-left-color: var(--info);
    background-color: #f0f8fc;
}

/* Forms */
.form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 10px 12px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Footer */
footer {
    background: #2c3e50;
    border-top: 1px solid #ecf0f1;
    margin-top: auto;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .btn-group-vertical {
        width: 100%;
    }

    .btn-group-vertical button,
    .btn-group-vertical a {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Loading Animation */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltips */
.tooltip-inner {
    background-color: #333;
    border-radius: 6px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Code */
code {
    background-color: #f4f4f4;
    border-radius: 4px;
    padding: 2px 6px;
    color: #333;
    font-size: 0.9rem;
}

pre {
    background-color: #f4f4f4;
    border-radius: 6px;
    padding: 12px;
    overflow-x: auto;
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.transition-all {
    transition: all 0.3s ease;
}
