/* Reset & Base Styles */
:root {
    --primary-color: #0f172a; /* Slate 900 */
    --accent-color: #3b82f6; /* Blue 500 */
    --text-color: #334155; /* Slate 700 */
    --light-bg: #f8fafc; /* Slate 50 */
    --white: #ffffff;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3 {
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    background: radial-gradient(circle at top right, #e0f2fe 0%, transparent 40%),
                radial-gradient(circle at bottom left, #f1f5f9 0%, transparent 40%);
}

.hero p.lead {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 12px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: #dbeafe;
    color: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Simplified mobile handling for now */
    .hero { padding-top: 140px; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

/* Dashboard Layout */
.dashboard-body {
    background-color: #f1f5f9;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: var(--primary-color);
    color: var(--white);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-header i {
        margin-right: 0.75rem;
    color: var(--accent-color);
}

.sidebar-menu {
    padding: 1.5rem 0;
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #94a3b8;
    transition: var(--transition);
    font-weight: 500;
}

.menu-item:hover, .menu-item.active {
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    border-right: 3px solid var(--accent-color);
}

.menu-item i {
    width: 24px;
    margin-right: 0.75rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--white);
}

.user-details h5 {
    font-size: 0.9rem;
    color: var(--white);
    margin: 0;
}

.user-details span {
    font-size: 0.75rem;
    color: #94a3b8;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 70px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.content-wrapper {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
}

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

.table th, .table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
    color: #64748b;
    background-color: #f8fafc;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-active { background-color: #dcfce7; color: #166534; }
.badge-passive { background-color: #f1f5f9; color: #475569; }
.badge-completed { background-color: #dbeafe; color: #1e40af; }

.action-btn {
    padding: 0.5rem;
    border-radius: 6px;
    color: #64748b;
    transition: var(--transition);
}

.action-btn:hover {
    background-color: #f1f5f9;
    color: var(--accent-color);
}

.action-btn.delete:hover {
    color: #ef4444;
}
