/* Root CSS Variables for Consistent Theming */
:root {
    --primary-color: #6a11cb; /* Deep Violet/Purple */
    --primary-light: #f2e9ff; /* Very light lavender/purple for backgrounds */
    --primary-dark: #441b6b; /* Darker shade of primary, for text/accents */
    --secondary-color: #43047d; /* Slightly different dark purple, can be aligned with primary-dark or used for specific accents */
    --gray-dark: #333;
    --gray-medium: #555;
    --gray-light: #6f6f6f;
    --white: #fff;
    --white-light: #f8f9fa; /* Adjusted to a standard light white for consistency */

    /* Liturgical Colors - Keep as is, they are specific */
    --liturgical-purple: #8a2be2;
    --liturgical-green: #2e8b57;
    --liturgical-white: #f8f9fa;
    --liturgical-red: #dc3545;
    --liturgical-gold: #ffd700;
    --liturgical-rose: #ffc0cb;
}

/* Global Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

/* Font Color for Primary Text */
.text-primary-color {
    color: var(--primary-color) !important;
}

/* General Button Styling for Primary Actions */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0.5rem; /* Added rounded corners */
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}
.btn-primary:active {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--white) !important;
}

/* Outline Button Styling for Secondary Actions */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
    border-radius: 0.5rem; /* Added rounded corners */
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    color: white !important;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:active {
    color: var(--primary-color) !important;
    background-color: transparent;
    border-color: var(--primary-color) !important;
}

/* Navbar Toggle Button Focus */
.navbar-toggler:focus {
    box-shadow: none;
}

/* Navbar Transition Effect */
.navbar {
    transition: all 0.3s ease;
}

/* Transparent Navbar Background */
.navbar-transparent {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Navbar Nav Link Styling */
.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem; /* Added rounded corners */
}

/* Navbar Nav Link Underline Effect */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Navbar Nav Link Hover and Active States */
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 2rem);
}

/* Navbar Active Link Color */
.nav-tabs .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* General Card Styling */
.card {
    border-radius: 0.75rem; /* Consistent rounded corners for cards */
    border: none; /* Remove default border */
    overflow: hidden; /* Ensures content respects border-radius */
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Subtle shadow on hover */
}

.card-header {
    border-top-left-radius: 0.75rem; /* Match card border-radius */
    border-top-right-radius: 0.75rem; /* Match card border-radius */
    background-color: var(--primary-color) !important; /* Ensure header uses primary color */
    color: white !important;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* Form Control Styling */
.form-control {
    border-radius: 0.5rem; /* Rounded corners for input fields */
    border: 1px solid var(--gray-medium);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(106, 17, 203, 0.25); /* Primary color focus ring */
}

/* Modal Styling */
.modal-content {
    border-radius: 0.75rem; /* Rounded corners for modals */
}

.modal-header {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%); /* White close button for dark headers */
}

/* General Placeholder/Empty State Styling */
.reflection-placeholder {
    text-align: center;
    padding: 2rem;
    color: var(--gray-medium);
    background-color: var(--white-light);
    border-radius: 0.75rem;
    border: 1px dashed var(--primary-light);
    margin-top: 2rem;
}

.reflection-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.reflection-placeholder h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Hashtag Badge Styling */
.hashtags .badge {
    font-weight: 500;
    padding: 0.4em 0.7em;
    border-radius: 0.5rem;
    background-color: var(--primary-light) !important;
    color: var(--primary-dark) !important;
    border: 1px solid var(--primary-color);
}

/* Footer Styling */
.site-footer {
    background-color: var(--primary-dark); /* Darker primary for footer */
    color: white;
    padding: 2rem 0;
    flex-shrink: 0;
    width: 100%;
    margin-top: 3rem;
    border-top: 5px solid var(--primary-color); /* Accent border */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

.footer-link {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.developer-credit {
    font-size: 0.9rem;
    margin-top: 1rem;
}

 /* for common footer */
.site-footer {
    background-color: #343a40;
    color: white;
    padding: 2rem 0;
    flex-shrink: 0;
    width: 100%;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.developer-credit {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}