/* css/style.css - Design System Premium para AgendaPro */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #4F46E5; /* Indigo */
    --primary-hover: #4338CA;
    --secondary: #10B981; /* Emerald */
    --accent: #F59E0B; /* Amber */
    --bg-color: #F1F5F9;
    --sidebar-bg: #0F172A; /* Dark Slate Premium */
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.05);
    z-index: 20;
}
.brand {
    font-size: 26px; font-weight: 800; color: #FFF;
    margin-bottom: 40px; padding-left: 12px; display: flex; align-items: center; gap: 12px; letter-spacing: -0.5px;
}
.brand span { color: var(--primary); }

.nav-menu { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.nav-item {
    padding: 14px 16px; border-radius: var(--radius-md); cursor: pointer;
    font-weight: 600; color: #94A3B8; transition: var(--transition);
    display: flex; align-items: center; gap: 14px; font-size: 14px;
}
.nav-item i { font-size: 18px; width: 24px; text-align: center; }
.nav-item:hover, .nav-item.active {
    background-color: var(--primary); color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25); transform: translateX(8px);
}

/* Main Content */
.main-content { flex: 1; display: flex; flex-direction: column; min-width: 0;}
.header {
    height: 76px; background: var(--glass-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; position: sticky; top: 0; z-index: 10;
}

.user-profile { display: flex; align-items: center; gap: 16px; font-weight: 600; font-size: 14px; }

/* Dashboard Cards Baseline */
.page-content { padding: 32px 40px; max-width: 1400px; margin: 0 auto; width: 100%;}
.page-title { font-size: 28px; font-weight: 800; margin-bottom: 32px; color: var(--text-main); letter-spacing: -0.5px; display: flex; align-items: center; gap: 12px;}

.premium-card {
    background: #FFFFFF; border-radius: var(--radius-lg); padding: 32px;
    box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.8);
    margin-bottom: 24px; transition: var(--transition);
}
.premium-card:hover { box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08); }

/* Globals Forms Slim */
.form-row { display: flex; gap: 16px; margin-bottom: 16px; align-items: flex-start; flex-wrap: wrap;}
.form-item { flex: 1; min-width: 200px; }
label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 13px; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted);}
.form-input {
    width: 100%; padding: 14px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-family: 'Inter', sans-serif;
    font-size: 14px; background: #F8FAFC; transition: var(--transition); outline: none; color: var(--text-main);
}
.form-input:focus { background: #FFF; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); }

.btn-submit {
    background: var(--primary); color: #FFF; border: none; padding: 14px 28px;
    border-radius: var(--radius-md); font-weight: 600; font-size: 14px; cursor: pointer;
    transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
}
.btn-submit.w-auto { width: auto; }
.btn-submit:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(79,70,229,0.3); }

/* Sleek Tables Slim */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
th { color: var(--text-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 16px; text-align: left; border-bottom: 1px solid var(--border-color); letter-spacing: 0.5px;}
td { padding: 16px; color: var(--text-main); border-bottom: 1px solid var(--border-color); font-weight: 500;}
tr:hover td { background: #F8FAFC; }
tr:last-child td { border-bottom: none; }

/* Status Badges */
.badge { padding: 6px 12px; border-radius: 20px; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block;}
.badge-blue { background: #E0E7FF; color: #3730A3; }
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-yellow { background: #FEF3C7; color: #92400E; }
.badge-red { background: #FEE2E2; color: #991B1B; }
.badge-gray { background: #F1F5F9; color: #475569; }

/* Botões Pequenos Limpos */
.btn-sm { padding: 8px 16px; border-radius: 8px; border: none; font-size: 12px; font-weight: 700; cursor: pointer; color: white; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; text-decoration: none;}
.btn-sm-primary { background: var(--primary); } .btn-sm-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 12px rgba(79,70,229,0.2);}
.btn-sm-danger { background: #EF4444; } .btn-sm-danger:hover { background: #DC2626; box-shadow: 0 4px 12px rgba(239,68,68,0.2);}

/* Stats Grid Rebuild */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 32px; }
.stat-card {
    background: white; border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--border-color);
    display: flex; flex-direction: column; gap: 16px;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(79, 70, 229, 0.3);}
.stat-icon { width: 48px; height: 48px; border-radius: 12px; background: #EEF2FF; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--text-main); letter-spacing: -1px; line-height: 1;}
.stat-title { font-size: 13px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;}

/* Utils */
.action-links a { color: var(--primary); text-decoration: none; margin-right: 12px; font-size: 18px; transition: 0.2s;}
.action-links a:hover { color: var(--primary-hover); transform: scale(1.1); display: inline-block;}
.action-links a.action-delete { color: #EF4444; } .action-links a.action-delete:hover { color: #DC2626; }
