/* Credentry Subscription Portal Styles */

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --credentry-dark: #1a1a2e;
    --credentry-darker: #16213e;
    --credentry-gradient-start: #4f46e5;
    --credentry-gradient-end: #7c3aed;
    --credentry-green: #10b981;
}

/* Global overrides for dark theme */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--credentry-dark) !important;
    color: #ffffff !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.page {
    background-color: var(--credentry-dark) !important;
    min-height: 100vh;
}

/* Force dark background on all containers */
.container, .container-fluid {
    background-color: transparent;
}

/* Override Bootstrap defaults */
.bg-light {
    background-color: var(--credentry-dark) !important;
}

.text-muted {
    color: #94a3b8 !important;
} 

/* CredEntry Pricing Specific Styles */
.credentry-pricing-header {
    background: linear-gradient(135deg, var(--credentry-gradient-start), var(--credentry-gradient-end));
    color: #ffffff;
    padding: 4rem 0;
}

.credentry-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #60efff, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.credentry-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.active-worker-package {
    background-color: var(--credentry-dark);
    color: #ffffff;
    padding: 4rem 0;
}

.package-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
}

.package-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

.credentry-pricing-card {
    background: var(--credentry-darker);
    border: 2px solid #334155;
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.credentry-pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--credentry-gradient-start);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3);
}

.credentry-pricing-card.most-popular {
    border-color: var(--credentry-green);
    background: linear-gradient(135deg, var(--credentry-darker), #1e3a3a);
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.credentry-pricing-card.most-popular:hover {
    transform: scale(1.02) translateY(-8px);
}

.most-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--credentry-green);
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    white-space: nowrap;
}

.credentry-pricing-card .card-header {
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    background: transparent;
    border-bottom: 1px solid #334155;
    flex-shrink: 0;
}

.credentry-pricing-card.most-popular .card-header {
    border-bottom-color: rgba(16, 185, 129, 0.3);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: #60efff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.plan-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.plan-price .amount {
    color: inherit;
    line-height: 1;
}

.plan-period {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.plan-description {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.credentry-pricing-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.credentry-pricing-card .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.credentry-pricing-card .feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    display: flex;
    align-items: flex-start;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.credentry-pricing-card .feature-list li:last-child {
    border-bottom: none;
}

.credentry-pricing-card .feature-list li i {
    color: var(--credentry-green);
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    font-size: 1rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

/* Fallback styles when Font Awesome doesn't load */
.credentry-pricing-card .feature-list li i:before {
    content: "✓";
    font-style: normal;
    font-weight: bold;
}

/* Row and column layout fixes */
.row {
    margin-left: -15px;
    margin-right: -15px;
    display: flex;
    flex-wrap: wrap;
}

.col-lg-4, .col-md-6, .mb-4 {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 1.5rem;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

@media (max-width: 991px) {
    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .col-lg-4, .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .credentry-title {
        font-size: 2.5rem;
    }
    
    .package-title {
        font-size: 2rem;
    }
    
    .plan-price {
        font-size: 2.5rem;
    }
    
    .credentry-pricing-card.most-popular {
        transform: none;
        margin-top: 0;
    }
    
    .credentry-pricing-card.most-popular:hover {
        transform: translateY(-8px);
    }
}

/* Navigation overrides */
.navbar {
    background-color: var(--credentry-darker) !important;
    border-bottom: 1px solid #334155;
}

.navbar-brand, .nav-link {
    color: #ffffff !important;
}

.nav-link:hover {
    color: var(--credentry-green) !important;
}

/* Footer overrides */
.footer {
    background-color: var(--credentry-darker) !important;
    border-top: 1px solid #334155;
    color: #ffffff !important;
}

.footer h5 {
    color: #ffffff !important;
}

.footer p {
    color: #cbd5e1 !important;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.justify-content-center {
    justify-content: center;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    min-height: 0vh;
    display: flex;
    align-items: center;
}

.hero-image i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-buttons .btn {
    min-width: 160px;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

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

.navbar {
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card .card-header {
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: #1f2937;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price .period {
    font-size: 1rem;
    color: #6b7280;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Package Configurator */
.option-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    height: 100%;
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.option-group {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.feature-list-small {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.feature-list-small li {
    padding: 0.25rem 0;
    color: #6b7280;
}

/* Price Summary */
.price-summary .card {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: none;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.pricing-breakdown .price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.total-price {
    font-size: 1.25rem;
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
}

.social-links a {
    display: inline-block;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Utilities */
.sticky-top {
    top: 1rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 0vh;
        text-align: center;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .price {
        font-size: 2rem;
    }
}

/* User Slider Styles */
.user-slider-container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.slider-header {
    text-align: center;
    margin-bottom: 2rem;
}

.user-count-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.slider-wrapper {
    position: relative;
    margin: 2rem 0;
}

.user-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    transition: background 0.3s;
}

.user-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.user-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.user-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.plan-indicator {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.plan-indicator.basic {
    background: #dbeafe;
    color: #1e40af;
}

.plan-indicator.professional {
    background: #ecfdf5;
    color: #065f46;
}

.plan-indicator.enterprise {
    background: #fef3c7;
    color: #92400e;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-description {
    font-size: 0.875rem;
    opacity: 0.8;
}

.pricing-calculator {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.price-display {
    text-align: center;
    margin-bottom: 2rem;
}

.monthly-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 1rem;
    color: #6b7280;
    margin-left: 0.5rem;
}

.annual-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.discount-badge {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

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

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

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

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

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

/* Features Page Styles */
.feature-item {
    display: flex;
    align-items: flex-start;
}

.feature-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.feature-content h5 {
    margin-bottom: 0.5rem;
}

.feature-image {
    opacity: 0.8;
}

.cta-buttons .btn {
    min-width: 180px;
}

@media (max-width: 768px) {
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}