/**
 * Shree Shyam Janasewa Trust - Social Automation System
 * Custom Design System & Responsive Theme (Light/Dark)
 */

:root {
    --trust-primary: #ea580c; /* Saffron */
    --trust-primary-hover: #c2410c;
    --trust-secondary: #0f172a; /* Deep Navy */
    --trust-accent: #f59e0b; /* Marigold Gold */
    --trust-bg-light: #f8fafc;
    --trust-card-bg: #ffffff;
    --trust-border: #e2e8f0;
    --trust-text-main: #1e293b;
    --trust-text-muted: #64748b;
    --sidebar-width: 260px;
}

[data-bs-theme="dark"] {
    --trust-bg-light: #090d16;
    --trust-card-bg: #111827;
    --trust-border: #1f2937;
    --trust-text-main: #f3f4f6;
    --trust-text-muted: #9ca3af;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--trust-bg-light);
    color: var(--trust-text-main);
    min-height: 100vh;
}

/* Sidebar Styling */
.app-sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    background: #0f172a;
    color: #f8fafc;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.app-sidebar .brand-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-sidebar .nav-link {
    color: #94a3b8;
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    margin: 0.2rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link.active {
    color: #ffffff;
    background: rgba(234, 88, 12, 0.2);
    border-left: 3px solid var(--trust-primary);
}

.app-sidebar .nav-link.active {
    background: var(--trust-primary);
}

/* Main Content Area */
.app-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-sidebar.show {
        transform: translateX(0);
    }
    .app-main {
        margin-left: 0;
    }
}

/* Top Navbar */
.app-topbar {
    height: 70px;
    background: var(--trust-card-bg);
    border-bottom: 1px solid var(--trust-border);
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

/* Dashboard Cards */
.card-custom {
    background: var(--trust-card-bg);
    border: 1px solid var(--trust-border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-custom:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Platform Badges */
.badge-platform-fb {
    background: #1877f2;
    color: #ffffff;
}
.badge-platform-ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #ffffff;
}
.badge-platform-yt {
    background: #ff0000;
    color: #ffffff;
}

/* Status Badges */
.badge-status-draft { background: #64748b; color: white; }
.badge-status-scheduled { background: #3b82f6; color: white; }
.badge-status-queued { background: #8b5cf6; color: white; }
.badge-status-publishing { background: #f59e0b; color: black; }
.badge-status-published { background: #10b981; color: white; }
.badge-status-failed { background: #ef4444; color: white; }
.badge-status-cancelled { background: #94a3b8; color: white; }

/* Social Feed Mockup Cards */
.preview-card-fb {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    max-width: 480px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.preview-card-ig {
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    background: #ffffff;
    max-width: 400px;
    margin: 0 auto;
}

.preview-card-yt {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    max-width: 500px;
    margin: 0 auto;
}

/* Toast Container */
.toast-container-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1090;
}

/* Indic Text Styles */
.font-indic {
    line-height: 1.6;
}
