/* /central/assets/css/style.css */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; }

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: #1a1a2e;
    color: white;
    padding: 20px 0;
    overflow-y: auto;
    z-index: 1000;
}
.sidebar .logo { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar .logo h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.sidebar .logo h2 i { color: #e94560; }
.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}
.sidebar nav a:hover, .sidebar nav a.active {
    background: rgba(233,69,96,0.15);
    color: white;
    border-left-color: #e94560;
}
.sidebar nav a i { width: 20px; text-align: center; }
.sidebar .user-info {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.sidebar .user-info strong { color: white; display: block; }

/* Main */
.main-content { margin-left: 250px; padding: 30px; min-height: 100vh; }
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}
.topbar h1 { font-size: 1.8rem; color: #1a1a2e; display: flex; align-items: center; gap: 12px; }
.topbar h1 i { color: #e94560; }
.topbar .user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #666;
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid #e94560;
}
.stat-card .number { font-size: 2rem; font-weight: 700; color: #1a1a2e; }
.stat-card .label { color: #888; font-size: 0.85rem; margin-top: 4px; }
.stat-card.blue { border-left-color: #3b82f6; }

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.card h3 { font-size: 1.1rem; color: #1a1a2e; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

/* Forms */
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 15px; align-items: end; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: #333; font-size: 0.85rem; }
.form-group input, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}
.form-group input:focus { border-color: #e94560; outline: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-primary { background: #e94560; color: white; }
.btn-primary:hover { background: #c23152; }
.btn-secondary { background: #f0f0f0; color: #333; }
.btn-secondary:hover { background: #e0e0e0; }
.btn-sm { padding: 6px 12px; font-size: 0.75rem; }
.btn-block { width: 100%; justify-content: center; margin-top: 20px; }

/* Tables */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f0f0f0; }
th { background: #f8f9fa; font-weight: 600; color: #555; font-size: 0.8rem; text-transform: uppercase; }

/* Messages */
.mensagem {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}
.mensagem.success { background: #d1fae5; color: #065f46; }
.mensagem.error { background: #fee2e2; color: #991b1b; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
}
.empty-state i { font-size: 3rem; margin-bottom: 15px; opacity: 0.3; color: #e94560; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}