:root {
    --primary: #ff0000;
    --primary-light: #ffcccc;
    --primary-dark: #cc0000;
    --secondary: #261921;
    --secondary-light: #3a2935;
    --accent: #ff6600;
    --light-bg: #f8fafc;
    --light-bg-2: #f1f5f9;
    --dark-text: #261921;
    --light-text: #666666;
    --white: #ffffff;
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --sidebar-bg: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --facebook-blue: #1877F2;
    --facebook-gray: #65676B;
    --facebook-light-gray: #F0F2F5;
    --ring-gradient: linear-gradient(135deg, #ff0000 0%, #261921 100%);
    --gold: #ffd700;
    --gold-light: #fff9db;
    --gold-dark: #e6b800;

    /* Mobile bottom nav colors - All set to #3a2935 */
    --nav-home: #3a2935;
    --nav-obituaries: #3a2935;
    --nav-remembrance: #3a2935;
    --nav-create: #3a2935;
    --nav-menu: #3a2935;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Button Styles */
.btn {
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Common Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(255, 0, 0, 0);
    }

    50% {
        transform: scale(1.05);
        text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    5% {
        transform: scale(1.1);
    }

    10% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.1);
    }

    20% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

/* Main Body Layout */
.main-body {
    padding: 20px 0 40px;
}

/* For pages with bottom nav on mobile */
@media (max-width: 992px) {
    .main-body {
        padding-bottom: 80px !important;
    }
}

/* TOAST NOTIFICATIONS */
.toast-stack {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100000;
    pointer-events: none;
}

.toast-pop {
    pointer-events: auto;
    min-width: 240px;
    max-width: 320px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: 12px;
    padding: 8px 10px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.toast-pop.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-pop.success {
    border-left-color: #16a34a;
}

.toast-pop.error {
    border-left-color: #dc2626;
}

.toast-pop.info {
    border-left-color: var(--primary);
}

.toast-title {
    font-weight: 800;
    color: var(--dark-text);
    font-size: .9rem;
    margin: 0;
}

.toast-msg {
    margin: 2px 0 0;
    color: var(--light-text);
    font-size: .85rem;
    line-height: 1.2rem;
}

.toast-x {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--light-text);
    font-size: 16px;
    line-height: 16px;
    padding: 0;
}

.toast-x:hover {
    color: var(--primary);
}