/* Base Styles & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f9fafb;
    color: #111827;
}

/* App Shell Layout */
.app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-logo img {
    max-width: 100%;
    height: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.nav-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.nav-item:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.nav-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.top-bar {
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

/* Content Area */
.content-area {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 1.8rem;
    color: #111827;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-large {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Forms */
.form-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #374151;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Tables */
.table-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

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

th {
    background-color: #f9fafb;
    padding: 12px 20px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
}

tr:last-child td {
    border-bottom: none;
}

/* Landing Page Specifics */
.landing-header {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}
.landing-header .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
}
.hero {
    text-align: center;
    padding: 80px 20px;
    background-color: #eff6ff;
}
.hero h1 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 20px;
}
.hero .subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 30px;
}

/* --- MINIMALIST LANDING PAGE OVERRIDES --- */
.landing-body {
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-nav .logo { height: 35px; }

.btn-nav {
    background: transparent;
    color: #111827;
    border: none;
    font-weight: 500;
    text-decoration: none;
}

.btn-dark {
    background-color: #000000;
    color: #ffffff;
    border-radius: 40px; /* Pill shape */
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease;
    display: inline-block;
}

.btn-dark:hover {
    transform: scale(1.02);
    background-color: #1a1a1a;
}

.hero-minimal {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
    padding: 0 20px;
}

.hero-content { max-width: 800px; }

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #111827;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
    font-weight: 400;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* --- FOOTER STYLES --- */
.site-footer {
    padding: 25px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    background-color: #ffffff;
    margin-top: auto; /* Pushes to bottom of the page */
}
.site-footer p {
    margin-bottom: 8px;
}
.site-footer a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer a:hover {
    color: #111827;
    text-decoration: underline;
}