/* SecurePay Main Styles */

:root {
    --primary-color: #0066cc;
    --secondary-color: #ededed;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 0.125rem 0.25rem rgb(249, 246, 246, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Ensure all text on white backgrounds is visible */
.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4, .bg-white h5, .bg-white h6,
.bg-white p, .bg-white span, .bg-white div, .bg-white li {
    color: #000000 !important;
}

.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6,
.bg-light p, .bg-light span, .bg-light div, .bg-light li {
    color: #000000 !important;
}

/* Card text visibility */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.card p, .card span, .card div, .card li {
    color: #000000 !important;
}

/* Feature card specific text color */
.feature-card h4, .feature-card h5, .feature-card p {
    color: #000000 !important;
}

/* Business feature text */
.business-feature h4, .business-feature h5, .business-feature p {
    color: #000000 !important;
}

/* Pricing card text */
.pricing-card h4, .pricing-card h5, .pricing-card p, .pricing-card .pricing-amount {
    color: #000000 !important;
}

/* Force all text on light backgrounds to be black */
section.py-5.bg-light * {
    color: #000000 !important;
}

/* Specifically target feature section text */
.feature-card h4 {
    color: #000000 !important;
}

.feature-card p {
    color: #000000 !important;
}

/* Override Bootstrap text colors */
.text-muted {
    color: #666666 !important;
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--box-shadow);
}

.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
}

/* Navigation Styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004499 100%);
    color: white;
    padding-top: 100px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--dark-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.feature-card h5,
.feature-card p,
.feature-card .feature-text {
    color: #000000 !important;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Business Feature Cards */
.business-feature {
    background: white;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--dark-color);
}

.business-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.business-feature h5,
.business-feature p,
.business-feature .text-muted {
    color: #000000 !important;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    color: var(--dark-color);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.pricing-card.border-primary {
    border-color: var(--primary-color) !important;
}

.pricing-card h5,
.pricing-card p,
.pricing-card .pricing-amount,
.pricing-card .text-muted {
    color: #000000 !important;
}

.pricing-amount {
    margin: 1rem 0;
}

/* Support Cards */
.support-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

/* Avatar Styles */
.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.profile-avatar .avatar-circle {
    width: 100px;
    height: 100px;
}

/* Balance Cards */
.balance-card {
    background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.balance-icon {
    font-size: 2rem;
    opacity: 0.8;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* OTP Input Styles */
.otp-input-container {
    max-width: 300px;
    margin: 0 auto;
}

.otp-input {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Card Styles for Banking */
.banking-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004499 100%);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.banking-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    letter-spacing: 2px;
    margin: 1rem 0;
}

.card-info {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

/* Transaction Styles */
.transaction-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-amount.positive {
    color: var(--success-color);
}

.transaction-amount.negative {
    color: var(--danger-color);
}

/* Status Badges */
.status-completed {
    background-color: var(--success-color) !important;
}

.status-pending {
    background-color: var(--warning-color) !important;
    color: var(--dark-color) !important;
}

.status-failed {
    background-color: var(--danger-color) !important;
}

/* Loading States */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .hero-card {
        margin-top: 1rem;
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .balance-card {
        margin-bottom: 1rem;
    }
    
    /* Mobile-specific optimizations */
    .navbar-collapse {
        background-color: rgba(0, 102, 204, 0.95);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
    }
    
    /* Mobile form optimizations */
    .form-control {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 48px; /* Better touch targets */
    }
    
    /* Mobile card adjustments */
    .card {
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile navigation improvements */
    .list-group-item-action {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    /* Transaction list mobile optimization */
    .transaction-item {
        padding: 15px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile sidebar improvements */
    .col-lg-3 {
        margin-bottom: 0;
    }
    
    /* Better spacing on mobile */
    .py-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Quick actions mobile layout */
    .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Mobile dropdown improvements */
    .dropdown-menu {
        border: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
    }
    
    .dropdown-item {
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Transaction Styles */
.transaction-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
}

.list-group-item-action {
    transition: all 0.2s ease;
}

.list-group-item-action:hover {
    background-color: rgba(0, 102, 204, 0.05);
    transform: translateX(5px);
}

/* Recent transactions container */
#recentTransactions .list-group-item {
    border-left: none;
    border-right: none;
    padding: 1rem 0;
}

#recentTransactions .list-group-item:first-child {
    border-top: none;
}

#recentTransactions .list-group-item:last-child {
    border-bottom: none;
}

/* Transaction amount styling */
.transaction-amount {
    font-weight: 600;
    font-size: 1rem;
}

/* Status text styling */
.transaction-status {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.shadow {
    box-shadow: var(--box-shadow-lg) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #f8f9fa;
        --light-color: #343a40;
    }
}
