/**
 * Estilos Customizados - Sistema de Torneios de Tênis
 */

/* Geral */
body {
    background-color: #f9f9f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
}

/* Navbar */
.navbar-default {
    border-bottom: 2px solid #2196f3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 16px;
}

/* Titles */
h1 {
    border-bottom: 2px solid #2196f3;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #333;
}

h2 {
    color: #555;
    margin-top: 30px;
}

h3 {
    color: #666;
}

/* Page Header */
.page-header {
    border-bottom: 1px solid #e5e5e5;
    margin: 20px 0 30px;
}

/* Jumbotron */
.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.jumbotron h2 {
    color: white;
}

.jumbotron p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Panels */
.panel {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.panel:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.panel-default > .panel-heading {
    background-color: #f5f5f5;
    border: none;
    border-bottom: 1px solid #ddd;
}

.panel-primary > .panel-heading {
    background-color: #2196f3;
    border: none;
}

.panel-success > .panel-heading {
    background-color: #4caf50;
    border: none;
}

.panel-info > .panel-heading {
    background-color: #2196f3;
    border: none;
}

.panel-warning > .panel-heading {
    background-color: #ff9800;
    border: none;
}

.panel-heading {
    padding: 12px 15px;
}

.panel-title {
    font-size: 15px;
    font-weight: 600;
}

/* Alerts */
.alert {
    border: none;
    border-left: 4px solid;
    border-radius: 2px;
    padding: 15px;
}

.alert-success {
    border-left-color: #4caf50;
    background-color: #f1f8f6;
    color: #1b5e20;
}

.alert-danger {
    border-left-color: #f44336;
    background-color: #fdf7f7;
    color: #b71c1c;
}

.alert-info {
    border-left-color: #2196f3;
    background-color: #f0f7ff;
    color: #01579b;
}

.alert-warning {
    border-left-color: #ff9800;
    background-color: #fff8f1;
    color: #e65100;
}

/* Badges */
.badge {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 3px;
    font-weight: 600;
}

.badge-success {
    background-color: #4caf50;
    color: white;
}

.badge-warning {
    background-color: #ff9800;
    color: white;
}

.badge-info {
    background-color: #2196f3;
    color: white;
}

.badge-danger {
    background-color: #f44336;
    color: white;
}

/* Tables */
.table {
    margin-top: 15px;
    background-color: white;
}

.table > thead > tr > th {
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    color: #333;
    padding: 12px 8px;
}

.table > tbody > tr {
    transition: background-color 0.2s ease;
}

.table > tbody > tr:hover {
    background-color: #f5f5f5;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fafafa;
}

.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > td {
    padding: 4px 8px;
}

/* Forms */
.form-horizontal .control-label {
    font-weight: 500;
    color: #555;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #2196f3;
    box-shadow: 0 1px 3px rgba(33, 150, 243, 0.3);
}

/* Buttons */
.btn {
    border: none;
    border-radius: 3px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
}

.btn-primary {
    background-color: #2196f3;
    color: white;
}

.btn-primary:hover {
    background-color: #1976d2;
    color: white;
}

.btn-success {
    background-color: #4caf50;
    color: white;
}

.btn-success:hover {
    background-color: #388e3c;
    color: white;
}

.btn-warning {
    background-color: #ff9800;
    color: white;
}

.btn-warning:hover {
    background-color: #e65100;
    color: white;
}

.btn-info {
    background-color: #2196f3;
    color: white;
}

.btn-info:hover {
    background-color: #1976d2;
    color: white;
}

.btn-default {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-default:hover {
    background-color: #eeeeee;
    color: #333;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Groups */
.btn-group {
    margin-bottom: 10px;
}

.btn-group > .btn {
    margin-right: 5px;
}

/* Nav Tabs */
.nav-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.nav-tabs > li > a {
    color: #666;
    border: none;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.nav-tabs > li > a:hover {
    color: #2196f3;
    background-color: #f5f5f5;
}

.nav-tabs > li.active > a {
    color: #2196f3;
    background-color: white;
    border: none;
    border-bottom: 3px solid #2196f3;
}

/* Well */
.well {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
    margin-top: 60px;
    padding-top: 30px;
    padding-bottom: 30px;
}

footer p {
    margin: 5px 0;
    font-size: 13px;
}

/* Fieldset */
fieldset {
    border: none;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    margin: 20px 0;
}

fieldset:first-child {
    border-top: none;
}

legend {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    width: auto;
    padding: 0 10px;
    margin-left: -10px;
}

/* Status Badges */
.badge-default {
    background-color: #999;
}

.badge-warning {
    background-color: #ff9800;
}

.badge-info {
    background-color: #2196f3;
}

.badge-success {
    background-color: #4caf50;
}

.badge-danger {
    background-color: #f44336;
}

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

.text-muted {
    color: #999;
}

.text-success {
    color: #4caf50;
}

.text-danger {
    color: #f44336;
}

.text-warning {
    color: #ff9800;
}

.text-info {
    color: #2196f3;
}

.no-margin {
    margin: 0;
}

.no-padding {
    padding: 0;
}

/* Partida Panel */
.partida-panel {
    margin-bottom: 15px;
}

.partida-panel .panel-heading {
    background-color: #f5f5f5;
}

.partida-panel.panel-success > .panel-heading {
    background-color: #c8e6c9;
}

.partida-panel.panel-warning > .panel-heading {
    background-color: #ffe0b2;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .jumbotron {
        padding: 30px 15px;
    }

    .table-responsive {
        font-size: 12px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }

    .navbar,
    .no-print {
        display: none !important;
    }

    .container {
        width: 100%;
        padding: 0;
    }

    .table {
        page-break-inside: avoid;
    }

    .panel {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
