/**
 * Plataforma de Gestão de Locadoras - Estilos Principais
 */

:root {
    --primary: #1a56db;
    --success: #0e9f6e;
    --warning: #c27803;
    --danger: #e02424;
    --sidebar-bg: #111827;
    --sidebar-hover: #1f2937;
}

/* Layout Geral */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #374151;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background-color: var(--sidebar-bg);
    padding: 20px 0;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar .logo {
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar .nav-link {
    color: #9ca3af;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--sidebar-hover);
    color: white;
    border-left-color: var(--primary);
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background-color: #f9fafb;
}

/* Topbar */
.topbar {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 20px;
    font-weight: 600;
}

/* Dashboard Cards */
.dashboard-card {
    padding: 20px;
    border-radius: 8px;
    color: white;
    margin-bottom: 20px;
}

.dashboard-card .icon {
    font-size: 36px;
    opacity: 0.8;
}

.dashboard-card .value {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
}

.dashboard-card .label {
    font-size: 14px;
    opacity: 0.9;
}

.dashboard-card.primary {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
}

.dashboard-card.success {
    background: linear-gradient(135deg, var(--success), #10b981);
}

.dashboard-card.warning {
    background: linear-gradient(135deg, var(--warning), #f59e0b);
}

.dashboard-card.danger {
    background: linear-gradient(135deg, var(--danger), #ef4444);
}

/* Tables */
.table {
    background-color: white;
}

.table thead th {
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    color: #6b7280;
}

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

/* Badges */
.badge {
    padding: 5px 10px;
    font-weight: 500;
    font-size: 11px;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #1543a8;
    border-color: #1543a8;
}

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

/* Forms */
.form-label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    color: #374151;
}

.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    font-size: 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
}

/* Login Page */
.min-vh-100 {
    min-height: 100vh !important;
}

/* Status Badges */
.status-ativo {
    background-color: var(--success);
}

.status-locado {
    background-color: var(--warning);
}

.status-manutencao {
    background-color: var(--danger);
}

.status-inativo {
    background-color: #6b7280;
}

/* Pagination */
.pagination {
    margin: 20px 0;
}

.page-link {
    color: var(--primary);
    border-color: #e5e7eb;
}

.page-link:hover {
    background-color: #f9fafb;
    border-color: #e5e7eb;
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Utilities */
.text-muted {
    color: #6b7280 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        padding: 0;
        overflow: hidden;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar.show {
        width: 260px;
        padding: 20px 0;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* File Upload */
.custom-file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-file-upload:hover {
    border-color: var(--primary);
    background-color: #f9fafb;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
