:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    /* IMAGEM DE FUNDO COM OVERLAY */
    background: linear-gradient(rgba(224, 231, 255, 0.5), rgba(224, 231, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1516734212186-a967f81ad0d7?q=80&w=2071&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-main);
}

.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px;
    gap: 30px;
}

/* Sidebar Glassmorphism */
.sidebar {
    width: 350px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px); /* Efeito de vidro embaçado */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    margin-bottom: 35px;
}

.logo i { font-size: 2rem; }

/* Inputs Estilizados */
.input-group { margin-bottom: 1.2rem; }
.input-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.input-group input, .input-group select {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.9);
    outline: none;
}

.btn-add {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}
.btn-add:hover { background: var(--primary-hover); transform: scale(1.02); }

/* Grid de Cards */
.content { flex: 1; }
.main-header { margin-bottom: 25px; background: var(--glass-bg); padding: 15px 25px; border-radius: 20px; backdrop-filter: blur(10px); }

.appointments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Card Moderno */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 22px;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
    animation: fadeIn 0.5s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.info h3 { font-size: 1.2rem; margin-bottom: 5px; color: var(--primary); }
.info p { font-size: 0.85rem; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }

.time-tag {
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: inline-block;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: #ef4444;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-delete:hover { background: #ef4444; color: white; }

.hidden { display: none; }

.empty-content {
    text-align: center;
    padding: 50px;
    background: var(--glass-bg);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}
.empty-content i { font-size: 3rem; color: var(--text-muted); }

/* Responsividade */
@media (max-width: 1024px) {
    .container { flex-direction: column; }
    .sidebar { width: 100%; position: relative; top: 0; }
}
