/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
}

/* Container principal */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Card de login */
.login-card {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 24rem;
}

/* Logo */
.login-card img {
    height: 3rem;
    width: auto;
    margin: 0 auto 1.5rem auto;
    display: block;
}

/* Títulos */
h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    text-align: center;
}

/* Formulário */
.space-y-4 > * + * {
    margin-top: 1rem;
}

/* Labels */
label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Inputs */
.input-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    color: #111827;
    background-color: white;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-field::placeholder {
    color: #9ca3af;
}

/* Botões */
.btn-login {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
}

a:hover {
    text-decoration: underline;
}

/* Mensagens de erro */
.text-red-600 {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Mensagens de sucesso */
.text-green-600 {
    color: #16a34a;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Utilitários */
.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

/* ===== DASHBOARD STYLES ===== */

/* Layout principal do dashboard */
.flex {
    display: flex;
}

.h-screen {
    height: 100vh;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-1 {
    flex: 1 1 0%;
}

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

.overflow-hidden {
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 16rem;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.sidebar .p-6 {
    padding: 1.5rem;
}

.sidebar .flex {
    display: flex;
}

.sidebar .items-center {
    align-items: center;
}

.sidebar .mb-8 {
    margin-bottom: 2rem;
}

.sidebar img {
    height: 2.5rem;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* Menu da sidebar */
.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: white;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-link.active {
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid white;
}

.sidebar-link i {
    margin-right: 0.75rem;
    width: 1rem;
    text-align: center;
}

/* Perfil do usuário */
.absolute {
    position: absolute;
}

.bottom-0 {
    bottom: 0;
}

.w-64 {
    width: 16rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

.rounded-full {
    border-radius: 9999px;
}

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

.ml-3 {
    margin-left: 0.75rem;
}

.text-white {
    color: white;
}

.font-medium {
    font-weight: 500;
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
}

.text-sm {
    font-size: 0.875rem;
}

/* Header */
.bg-white {
    background-color: white;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.border-b {
    border-bottom-width: 1px;
    border-bottom-color: #e5e7eb;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.justify-between {
    justify-content: space-between;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-bold {
    font-weight: 700;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-600 {
    color: #4b5563;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.p-2 {
    padding: 0.5rem;
}

.text-gray-400 {
    color: #9ca3af;
}

.hover\:text-gray-600:hover {
    color: #4b5563;
}

/* Conteúdo principal */
.overflow-y-auto {
    overflow-y: auto;
}

.p-6 {
    padding: 1.5rem;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-6 {
    gap: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Cards de estatísticas */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-card-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-card-warning {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

/* Texto dos cards */
.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

/* Ícones dos cards */
.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

/* Tabelas */
.table {
    width: 100%;
    border-collapse: collapse;
}

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

.table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

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

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5a67d8;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-success {
    background-color: #10b981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

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

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Formulários */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    color: #111827;
    background-color: white;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Responsividade */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .login-container {
        padding: 0.5rem;
    }
    
    .login-card {
        padding: 1.5rem;
    }
    
    .sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.open {
        left: 0;
    }
}