:root {
    --primary-gradient: linear-gradient(135deg, #715AFF 0%, #5887FF 100%);
    --primary-color: #715AFF;
    --secondary-color: #5887FF;
    --accent-cyan: #55C1FF;
    --dark-navy: #102E4A;
    --light-periwinkle: #A682FF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}
/* Navigation Bar Styling */
.navbar-custom {
    background: var(--primary-gradient);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: white !important;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.navbar-brand img {
    width: 45px;
    height: 45px;
}

.navbar-custom .nav-link {
    color: white !important;
    font-weight: 500;
    margin-left: 1.5rem;
    transition: opacity 0.3s;
}

.navbar-custom .nav-link:hover {
    opacity: 0.8;
}

/* HOME.HBS STYLING */
.homeInfo {
    background-color: white;
    font-family: 'Bricolage Grotesque', sans-serif; 
}
/* Main page hero styling */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
}

.btn-hero {
    background: white;
    color: var(--primary-color);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: var(--primary-color);
}
/* Features and Calculator image styling */
.features-section {
    padding: 4rem 0;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(113, 90, 255, 0.1);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(113, 90, 255, 0.2);
}

.feature-card h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #5a6c7d;
    font-size: 1.05rem;
    line-height: 1.7;
}

.calculator-preview {
    background: linear-gradient(135deg, #E8F0FF 0%, #D4E6FF 100%);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.calc-visual {
    background: #D4E6FF;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.calc-display {
    background: #102E4A;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: right;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    min-width: 200px;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.calc-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Interest Calculators Styling */
/* .interest-calc{
    color: white;
    border-radius: 25px;
    border-style:2px solid;
    background-color: rgb(48, 37, 37);
    font-family: 'Bricolage Grotesque', sans-serif; 
} */
/* form styling */
.page-container {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #E8F0FF 0%, #D4E6FF 100%);
}

.form-box {
    background: #102E4A;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(113, 90, 255, 0.2);
    max-width: 550px;
    width: 100%;
}

.form-box h1,
.form-box h2 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.form-box, 
.form-label {
    color: white;
    font-weight: 500;
}

.form-box .form-control,
.form-box .form-select {
    background: white;
    border: none;
    padding: 0.875rem;
    font-size: 1rem;
}

.form-box .form-control:focus,
.form-box .form-select:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(113, 90, 255, 0.25);
}

.btn-form-primary {
    background: linear-gradient(135deg, #55C1FF 0%, #5887FF 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    box-shadow: 0 4px 15px rgba(85, 193, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-form-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 193, 255, 0.4);
    color: white;
}
/* Update bill/ bill info styling */
.bill-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    color: white;
}

.bill-info h3 {
    color: #55C1FF;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.bill-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.bill-info a {
    color: #55C1FF;
    text-decoration: none;
    font-weight: 600;
}

.bill-info a:hover {
    color: #A682FF;
    text-decoration: underline;
}

/* Forms styling */
/* .login-up-form{
    color: white;
    border-radius: 25px;
    border-style:5px solid;
    background-color: rgb(48, 37, 37);
    font-family: 'Bricolage Grotesque', sans-serif; 
}

.submitButton {
    background-color: rgb(241, 194, 65);
    color: rgb(48, 37, 37);
    border-radius: 70px;
    margin-top: 4px;
    border-style:3px solid;
    font-size: 21px;
    font-family: 'Bricolage Grotesque', sans-serif; 
    width: 8rem;
} */

/* Footer Styling */
.paytrackFooter {
    color: #000000;
}

/* public/css/style.css */
.italic-placeholder::placeholder {
  font-style: italic;
}

/* Interest calculator styling */
.calculator-section {
    background: #102E4A;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(113, 90, 255, 0.15);
}

.calculator-section h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

/* Calculator input groups */
.calc-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.calc-input-group label {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    margin-right: 1rem;
    margin-bottom: 0;
}

.calc-input-group .form-control {
    width: 100px;
    margin: 0 0.5rem;
}

/* Results styling */
.calc-results {
    text-align: center;
}

.result-interest {
    color: #55C1FF;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.result-total {
    color: #A682FF;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .calc-input-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .calc-input-group label {
        margin-bottom: 0.5rem;
    }

    .calc-input-group .form-control {
        width: 100%;
        margin: 0;
    }
}

/* Filter bar and bill card styling */
.filter-bar {
    background: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-bar h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #102E4A;
    margin-bottom: 0;
}

.filter-bar a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.3s;
}

.filter-bar a:hover {
    background: rgba(113, 90, 255, 0.1);
}

/* Bill card styling */
.bill-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(113, 90, 255, 0.1);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.bill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(113, 90, 255, 0.2);
}

.bill-card h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.bill-card p {
    color: #5a6c7d;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.bill-card p strong {
    color: #102E4A;
}

.bill-card .amount-due {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.bill-card .btn-update {
    background: linear-gradient(135deg, #715AFF 0%, #5887FF 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: auto;
    display: inline-block;
}

.bill-card .btn-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(113, 90, 255, 0.3);
    color: white;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #5a6c7d;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #102E4A;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.empty-state .btn-add {
    background: linear-gradient(135deg, #55C1FF 0%, #5887FF 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s;
}

.empty-state .btn-add:hover {
    transform: translateY(-2px);
}

/* Flash message styling */
/* Alert container */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Error messages */
.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Success messages */
.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

/* Close button */
.alert .btn-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    line-height: 1;
    transition: opacity 0.3s;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* Alert text */
.alert-text {
    flex: 1;
}

/* Animation for fade out when dismissed */
.alert.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

/* Articles Page Styling */

/* Page Header */
.articles-header {
    margin-top: 3rem;
}

.articles-title {
    background: linear-gradient(135deg, #715AFF 0%, #5887FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.articles-subtitle {
    color: #5a6c7d;
    font-size: 1.2rem;
    font-weight: 400;
}

/* Article Card */
.article-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(113, 90, 255, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(113, 90, 255, 0.1);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(113, 90, 255, 0.15);
    border-color: rgba(113, 90, 255, 0.3);
}

/* Category Badge */
.article-badge {
    display: inline-block;
    background: linear-gradient(135deg, #715AFF 0%, #5887FF 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    width: fit-content;
}

/* Article Title */
.article-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-title a {
    color: #102E4A;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #715AFF;
}

/* Article Excerpt */
.article-excerpt {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article Meta */
.article-meta {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: auto;
}

.article-source {
    background: linear-gradient(135deg, #715AFF 0%, #5887FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 0.9rem;
}

.article-date {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Read Article Button */
.btn-read-article {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #715AFF 0%, #5887FF 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.btn-read-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(113, 90, 255, 0.4);
    color: white;
}

/* Empty State */
.empty-state {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(113, 90, 255, 0.08);
}

.empty-state h3 {
    color: #102E4A;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .articles-title {
        font-size: 2rem;
    }
    
    .articles-subtitle {
        font-size: 1rem;
    }
    
    .article-card {
        padding: 1.5rem;
    }
}