/* Login benefits: nicer cards */
.ctc-benefit-item {
    background: linear-gradient(135deg, #ffffff, #ffffff20);
    color: #000;
    padding: 20px;
    border-radius: 10px;
}
/* Registration features: nicer cards */
.ctc-feature-item {
    background: linear-gradient(135deg, #ffffff, #ffffff20);
    color: #000;
    padding: 20px;
    border-radius: 10px;
}
/* Childcare Tuition Calculator - Frontend Styles */

/* CSS Variables for theming */
:root {
    --ctc-primary-color: #4A90E2;
    --ctc-secondary-color: #50E3C2;
    --ctc-accent-color: #7ED321;
    --ctc-primary-dark: #357ABD;
    --ctc-secondary-dark: #45D4B8;
    --ctc-accent-dark: #69B01C;
    --ctc-primary-rgb: 74, 144, 226;
    --ctc-secondary-rgb: 80, 227, 194;
    --ctc-accent-rgb: 126, 211, 33;
    --ctc-text-dark: #2C3E50;
    --ctc-text-light: #7F8C8D;
    --ctc-background: #F8F9FA;
    --ctc-white: #FFFFFF;
    --ctc-border: #E0E6ED;
    --ctc-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --ctc-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --ctc-radius: 8px;
    --ctc-radius-lg: 12px;
    --ctc-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body.ctc-center-page,
body.ctc-dashboard-page,
body.ctc-registration-page,
body.ctc-login-page {
    font-family: var(--ctc-font-family);
    line-height: 1.6;
    color: var(--ctc-text-dark);
    background: var(--ctc-background);
    margin: 0;
    padding: 0;
}

/* Container and layout */
.ctc-container {
    margin: 0px;
    padding: 0px;
}

.ctc-header {
    background: var(--ctc-white);
    box-shadow: var(--ctc-shadow);
    padding: 20px 20px;
    margin-bottom: 30px;
}

.ctc-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ctc-logo {
    max-height: 60px;
    width: auto;
    border-radius: var(--ctc-radius);
}

.ctc-center-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ctc-primary-color);
    margin: 0;
}

.ctc-center-subtitle {
    font-size: 1.2rem;
    color: var(--ctc-text-light);
    margin: 0;
}

/* Card component */
.ctc-card {
    background: var(--ctc-white);
    border-radius: var(--ctc-radius-lg);
    box-shadow: var(--ctc-shadow);
    padding: 30px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

.ctc-card:hover {
    box-shadow: var(--ctc-shadow-hover);
}

.ctc-card h2 {
    color: var(--ctc-primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Form elements */
.ctc-form-group {
    margin-bottom: 20px;
}

.ctc-form-group label {
    display: block;
    font-weight: 600;
    color: var(--ctc-text-dark);
    margin-bottom: 8px;
    font-size: 1rem;
}

.ctc-form-group input,
.ctc-form-group textarea,
.ctc-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--ctc-border);
    border-radius: var(--ctc-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--ctc-white);
}

/* Gradient background for select fields */
.ctc-form-group select {
    background: linear-gradient(
        135deg,
        rgba(var(--ctc-primary-rgb), 0.08),
        rgba(var(--ctc-secondary-rgb), 0.08)
    );
}

.ctc-form-group select:hover {
    background: linear-gradient(
        135deg,
        rgba(var(--ctc-primary-rgb), 0.12),
        rgba(var(--ctc-secondary-rgb), 0.12)
    );
}

.ctc-form-group select:focus {
    background: linear-gradient(
        135deg,
        rgba(var(--ctc-primary-rgb), 0.15),
        rgba(var(--ctc-secondary-rgb), 0.15)
    );
}

.ctc-form-group select:active {
    background: linear-gradient(
        135deg,
        rgba(var(--ctc-primary-rgb), 0.18),
        rgba(var(--ctc-secondary-rgb), 0.18)
    );
}

.ctc-form-group select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--ctc-primary-rgb), 0.15);
}

.ctc-form-group input:focus,
.ctc-form-group textarea:focus,
.ctc-form-group select:focus {
    outline: none;
    border-color: var(--ctc-primary-color);
    box-shadow: 0 0 0 3px rgba(var(--ctc-primary-rgb), 0.1);
}

.ctc-form-group small {
    display: block;
    color: var(--ctc-text-light);
    font-size: 0.875rem;
    margin-top: 5px;
}

/* Checkbox styling */
.ctc-checkbox-group {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
}

.ctc-settings-form .ctc-settings-group {
    margin-bottom: 20px;
}

.ctc-checkbox-group label {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    cursor: pointer;
    background: var(--ctc-white);
    border-radius: var(--ctc-radius-lg);
    box-shadow: var(--ctc-shadow);
    padding: 30px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.ctc-checkbox-group label:hover {
    box-shadow: var(--ctc-shadow-hover);
}

/* Focus ring for accessibility on checkbox label */
.ctc-checkbox-group label:has(input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(var(--ctc-primary-rgb), 0.25), var(--ctc-shadow-hover);
}

/* Checked state - using :has() selector for modern browsers */
.ctc-checkbox-group label:has(input:checked) {
    background: linear-gradient(135deg, var(--ctc-primary-color), var(--ctc-secondary-color));
    color: #ffffff;
    border: 2px solid var(--ctc-secondary-color) !important;
    box-shadow: 0 8px 24px rgba(var(--ctc-primary-rgb), 0.35);
}
.ctc-checkbox-group label:has(input:checked):hover,
.ctc-checkbox-group label.checked:hover {
    box-shadow: 0 10px 28px rgba(var(--ctc-primary-rgb), 0.45);
}

/* Fallback for browsers that don't support :has() */
.ctc-checkbox-group label.checked {
    background: linear-gradient(135deg, var(--ctc-primary-color), var(--ctc-secondary-color));
    color: #ffffff;
    border: 2px solid var(--ctc-secondary-color) !important;
    box-shadow: 0 8px 24px rgba(var(--ctc-primary-rgb), 0.35);
}

/* Ensure subtexts are readable on selected gradient */
.ctc-checkbox-group label:has(input:checked) .ctc-age-range,
.ctc-checkbox-group label.checked .ctc-age-range {
    color: rgba(255, 255, 255, 0.9);
}

/* Circular SVG checkmark badge, centered at top, half-overflow */
.ctc-checkbox-group label::before,
.ctc-checkbox-group label::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Circle background */
.ctc-checkbox-group label::before {
    background: var(--ctc-white);
    border-radius: 50%;
    border: 2px solid var(--ctc-secondary-color);
    box-shadow: 0 8px 24px rgba(var(--ctc-primary-rgb), 0.35);
}

/* Checkmark icon (uses currentColor) */
.ctc-checkbox-group label::after {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    /* SVG stroke uses currentColor */
    color: var(--ctc-primary-color);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
}

/* Reveal badge when selected */
.ctc-checkbox-group label:has(input:checked)::before,
.ctc-checkbox-group label:has(input:checked)::after,
.ctc-checkbox-group label.checked::before,
.ctc-checkbox-group label.checked::after {
    opacity: 1;
}

.ctc-checkbox-group input {
    display: none;
}

.ctc-settings-group .ctc-form-row {
    margin: 0px;
}

.ctc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: var(--ctc-radius);
    transition: background-color 0.3s ease;
}

.ctc-checkbox-label:hover {
    background-color: rgba(var(--ctc-primary-rgb), 0.05);
}

.ctc-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--ctc-primary-color);
}

.ctc-checkbox-text {
    flex: 1;
    font-weight: 500;
}

.ctc-age-range {
    color: var(--ctc-text-light);
    font-weight: 400;
}

/* Slider styling */
.ctc-slider-group {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(var(--ctc-primary-rgb), 0.05);
    padding: 15px;
    border-radius: var(--ctc-radius);
}

.ctc-slider-group input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--ctc-border);
    border-radius: 3px;
    outline: none;
}

.ctc-slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--ctc-primary-color);
    border-radius: 50%;
    cursor: pointer;
}

input#logo-upload {
    display: none;
}

button#upload-logo-btn {
    margin-top: 10px;
}

.ctc-slider-group input[type="number"] {
    width: 80px;
    margin: 0;
}

input[type="color" i] {
    height: 80px;
}

.ctc-percentage-symbol {
    font-weight: 600;
    color: var(--ctc-primary-color);
    font-size: 1.2rem;
}

/* Button styles */
.ctc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--ctc-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.ctc-btn-primary {
    background: linear-gradient(135deg, var(--ctc-primary-color), var(--ctc-secondary-color));
    color: var(--ctc-white);
}

.ctc-btn-primary:hover {
    background: linear-gradient(135deg, var(--ctc-primary-dark), var(--ctc-secondary-dark));
    transform: translateY(-2px);
    box-shadow: var(--ctc-shadow-hover);
}
.ctc-btn-primary:active {
    background: linear-gradient(135deg, var(--ctc-primary-dark), var(--ctc-secondary-dark));
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.ctc-btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--ctc-primary-rgb), 0.25), var(--ctc-shadow-hover);
}

.ctc-btn-secondary {
    background: linear-gradient(135deg, var(--ctc-secondary-color), var(--ctc-accent-color));
    color: var(--ctc-white);
}

.ctc-btn-secondary:hover {
    background: linear-gradient(135deg, var(--ctc-secondary-dark), var(--ctc-accent-dark));
    transform: translateY(-2px);
    color: var(--ctc-white);
}
.ctc-btn-secondary:active {
    background: linear-gradient(135deg, var(--ctc-secondary-dark), var(--ctc-accent-dark));
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.ctc-btn-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--ctc-primary-rgb), 0.25), var(--ctc-shadow-hover);
}

.ctc-btn-link {
    background: transparent;
    color: var(--ctc-primary-color);
    border: 2px solid var(--ctc-primary-color);
}

.ctc-btn-link:hover {
    background: linear-gradient(135deg, var(--ctc-primary-color), var(--ctc-secondary-color));
    color: var(--ctc-white);
}
.ctc-btn-link:active {
    background: linear-gradient(135deg, var(--ctc-primary-dark), var(--ctc-secondary-dark));
    color: var(--ctc-white);
}
.ctc-btn-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--ctc-primary-rgb), 0.25);
}

.ctc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ctc-btn-full {
    width: 100%;
}

/* Results section */
.ctc-results-section {
    animation: slideInUp 0.5s ease;
}

/* Dashboard scenario chart max height */
canvas#ctc-scenario-chart {
    max-height: 500px;
}

/* Scenario Manager layout tweaks */
div#ctc-students-row .ctc-form-group {
    margin-bottom: 0px;
}

div#ctc-students-row {
    margin-bottom: 0;
}

div#ctc-save-row .ctc-form-actions {
    margin-top: 0;
}

div#ctc-scenario-summary {
    flex-wrap: nowrap !important;
}

div#ctc-scenario-summary .ctc-summary-item {
    width: 100%;
}

/* Scenarios modal list (cards) */
.ctc-scenarios-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

.ctc-scenario-item {
    width: 100%;
    box-sizing: border-box;
    background: var(--ctc-white);
    border-radius: var(--ctc-radius-lg);
    box-shadow: var(--ctc-shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 1024px) {
    .ctc-scenarios-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ctc-scenarios-list {
        grid-template-columns: 1fr;
    }
}

/* Active scenario styling */
.ctc-scenario-active {
    border: 2px solid var(--ctc-primary-color) !important;
    background: linear-gradient(135deg, rgba(var(--ctc-primary-rgb), 0.05), rgba(var(--ctc-secondary-rgb), 0.05)) !important;
}

.ctc-active-badge {
    background: linear-gradient(135deg, var(--ctc-primary-color), var(--ctc-secondary-color));
    color: white;
    font-size: 0.6em;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: bold;
}

/* Hide center title when logo exists */
.ctc-header-content.ctc-has-logo .ctc-center-title {
    display: none;
}

.ctc-scenario-info h4 {
    margin: 0 0 5px 0;
    color: var(--ctc-primary-color);
}

.ctc-scenario-info p {
    margin: 0;
}

.ctc-scenario-item small {
    color: var(--ctc-text-light);
}

.ctc-scenario-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Scenario manager header actions spacing */
.ctc-scenarios-section .ctc-section-header .ctc-form-actions {
    margin: 0px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ctc-results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.ctc-results-table th,
.ctc-results-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--ctc-border);
}

.ctc-results-table th {
    background: rgba(var(--ctc-primary-rgb), 0.1);
    font-weight: 600;
    color: var(--ctc-primary-color);
}

/* Pricing Table Styles */
#pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

#pricing-table th,
#pricing-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--ctc-border);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#pricing-table th {
    background: linear-gradient(
        135deg,
        rgba(var(--ctc-primary-rgb), 0.10),
        rgba(var(--ctc-secondary-rgb), 0.10)
    );
    font-weight: 600;
    color: var(--ctc-primary-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

#pricing-table th:hover {
    background: linear-gradient(
        135deg,
        rgba(var(--ctc-primary-rgb), 0.14),
        rgba(var(--ctc-secondary-rgb), 0.14)
    );
}

#pricing-table th:active {
    background: linear-gradient(
        135deg,
        rgba(var(--ctc-primary-rgb), 0.18),
        rgba(var(--ctc-secondary-rgb), 0.18)
    );
}

#pricing-table th:focus-within {
    box-shadow: inset 0 -3px 0 0 var(--ctc-primary-color), 0 0 0 3px rgba(var(--ctc-primary-rgb), 0.15);
}

#pricing-table td:first-child,
#pricing-table th:first-child {
    font-weight: 600;
    background: linear-gradient(
        135deg,
        rgba(var(--ctc-primary-rgb), 0.06),
        rgba(var(--ctc-secondary-rgb), 0.06)
    );
    min-width: 100px;
}

#pricing-table td:first-child:hover,
#pricing-table th:first-child:hover {
    background: linear-gradient(
        135deg,
        rgba(var(--ctc-primary-rgb), 0.10),
        rgba(var(--ctc-secondary-rgb), 0.10)
    );
}

#pricing-table td:first-child:active,
#pricing-table th:first-child:active {
    background: linear-gradient(
        135deg,
        rgba(var(--ctc-primary-rgb), 0.12),
        rgba(var(--ctc-secondary-rgb), 0.12)
    );
}

#pricing-table td:first-child:focus-within,
#pricing-table th:first-child:focus-within {
    box-shadow: inset 3px 0 0 0 var(--ctc-primary-color), 0 0 0 3px rgba(var(--ctc-primary-rgb), 0.12);
}

.pricing-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--ctc-border);
    border-radius: var(--ctc-radius);
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.pricing-input:focus {
    outline: none;
    border-color: var(--ctc-primary-color);
    box-shadow: 0 0 0 2px rgba(var(--ctc-primary-rgb), 0.1);
}

.pricing-input:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Smooth column hiding/showing */
#pricing-table th[style*="display: none"],
#pricing-table td[style*="display: none"] {
    opacity: 0;
    transform: scaleX(0);
}

#pricing-disabled-message td {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    background: rgba(255, 193, 7, 0.1);
}

.ctc-comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.ctc-comparison-item {
    padding: 20px;
    border-radius: var(--ctc-radius);
    text-align: center;
}

.ctc-current-rate {
    background: rgba(127, 140, 141, 0.1);
    border-left: 4px solid var(--ctc-text-light);
}

.ctc-new-rate {
    background: rgba(var(--ctc-primary-rgb), 0.1);
    border-left: 4px solid var(--ctc-primary-color);
}

.ctc-rate-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ctc-rate-label {
    font-size: 0.9rem;
    color: var(--ctc-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Summary section */
.ctc-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ctc-summary-item {
    background: rgba(var(--ctc-accent-rgb), 0.1);
    padding: 20px;
    border-radius: var(--ctc-radius);
    text-align: center;
    border-left: 4px solid var(--ctc-accent-color);
}

.ctc-summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ctc-accent-color);
    margin-bottom: 8px;
}

.ctc-summary-label {
    font-size: 0.9rem;
    color: var(--ctc-text-dark);
    font-weight: 500;
}

/* Modal styles */
.ctc-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.ctc-modal-content {
    background-color: var(--ctc-white);
    margin: 5% auto;
    padding: 30px;
    border-radius: var(--ctc-radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.ctc-group-results {
    background: rgba(var(--ctc-primary-rgb), 0.05);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: var(--ctc-shadow);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ctc-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--ctc-radius);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ctc-white);
}

.ctc-modal-close:hover {
    color: var(--ctc-white);
}

/* Loading overlay */
.ctc-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.ctc-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--ctc-border);
    border-top: 4px solid var(--ctc-primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.ctc-footer {
    text-align: center;
    padding: 40px 0;
    color: var(--ctc-text-light);
    border-top: 1px solid var(--ctc-border);
    margin-top: 40px;
}

.ctc-powered-by {
    font-size: 0.875rem;
    margin-top: 10px;
}

/* Auth pages styling */
.ctc-auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.ctc-auth-card {
    background: var(--ctc-white);
    border-radius: var(--ctc-radius-lg);
    box-shadow: var(--ctc-shadow);
    padding: 40px;
    height: fit-content;
    align-self: center;
}

.ctc-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.ctc-auth-header h1 {
    color: var(--ctc-primary-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.ctc-auth-header p {
    color: var(--ctc-text-light);
    font-size: 1.1rem;
}

.ctc-auth-form {
    margin-bottom: 30px;
}

.ctc-auth-footer {
    text-align: center;
    color: var(--ctc-text-light);
}

.ctc-auth-footer a {
    color: var(--ctc-primary-color);
    text-decoration: none;
}

.ctc-auth-footer a:hover {
    text-decoration: underline;
}

/* Features preview */
.ctc-features-preview,
.ctc-login-benefits {
    padding: 40px;
    background: linear-gradient(135deg, var(--ctc-primary-color), var(--ctc-secondary-color));
    border-radius: var(--ctc-radius-lg);
    color: var(--ctc-white);
}

.ctc-features-preview h2,
.ctc-login-benefits h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.ctc-features-list,
.ctc-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ctc-feature-item,
.ctc-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.ctc-feature-icon,
.ctc-benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.ctc-feature-content h3,
.ctc-benefit-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.ctc-feature-content p,
.ctc-benefit-content p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* Dashboard specific styles */
.ctc-dashboard-container {
    background: var(--ctc-background);
    min-height: 100vh;
}

.ctc-dashboard-header {
    background: var(--ctc-white);
    box-shadow: var(--ctc-shadow);
    padding: 20px 20px 0px;
    margin-bottom: 0;
}

.ctc-dashboard-header .ctc-header-content {
    justify-content: space-between;
}

.ctc-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ctc-quick-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ctc-welcome {
    font-weight: 600;
    color: var(--ctc-text-dark);
}

.ctc-dashboard-nav {
    background: var(--ctc-white);
    border-bottom: 1px solid var(--ctc-border);
    padding: 0 20px;
}

.ctc-nav-tabs {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 100%;
    margin: 0 auto;
    max-width: 1200px;
}

.ctc-nav-tab {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--ctc-text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.ctc-nav-tab:hover,
.ctc-nav-tab.active {
    color: var(--ctc-primary-color);
    border-bottom-color: var(--ctc-primary-color);
}

.ctc-dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

main.ctc-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
}

.ctc-tab-content {
    display: none;
}

.ctc-tab-content.active {
    display: block;
}

.ctc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.ctc-section-header h2 {
    margin: 0;
    color: var(--ctc-primary-color);
}

/* Dashboard cards and stats */
.ctc-dashboard-stats {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.ctc-stat-card {
    background: var(--ctc-white);
    border-radius: var(--ctc-radius-lg);
    box-shadow: var(--ctc-shadow);
    padding: 30px;
}

.ctc-url-display {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.ctc-url-display input {
    flex: 1;
    background: var(--ctc-background);
    border: 1px solid var(--ctc-border);
}

.ctc-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 0px;
}

.ctc-stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(var(--ctc-primary-rgb), 0.05);
    border-radius: var(--ctc-radius);
}

.ctc-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ctc-primary-color);
}

.ctc-stat-label {
    font-size: 0.9rem;
    color: var(--ctc-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form layouts */
.ctc-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ctc-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

div#age-groups-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ctc-age-group-item {
    background: var(--ctc-white);
    border-radius: var(--ctc-radius-lg);
    box-shadow: var(--ctc-shadow);
    padding: 30px;
}

.ctc-group-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Print styles */
@media print {
    .ctc-print-section {
        display: block !important;
    }
    
    .ctc-header,
    .ctc-footer,
    .ctc-scenarios-section,
    .ctc-btn {
        display: none !important;
    }
    
    .ctc-print-header {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .ctc-print-header h1 {
        color: var(--ctc-primary-color);
        margin-bottom: 10px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .ctc-container {
        padding: 0 15px;
    }
    
    .ctc-header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .ctc-center-title {
        font-size: 2rem;
    }
    
    .ctc-card {
        padding: 20px;
    }
    
    .ctc-comparison-row {
        grid-template-columns: 1fr;
    }
    
    .ctc-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .ctc-auth-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .ctc-auth-card {
        padding: 30px 20px;
    }
    
    .ctc-features-preview,
    .ctc-login-benefits {
        padding: 30px 20px;
    }
    
    .ctc-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .ctc-nav-tabs {
        flex-wrap: wrap;
    }
    
    .ctc-header-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .ctc-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    div#age-groups-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 0px;
    }

    .ctc-age-group-item {
        background: var(--ctc-white);
        border-radius: var(--ctc-radius-lg);
        box-shadow: var(--ctc-shadow);
        padding: 30px;
    }

    .ctc-group-actions {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    
    .ctc-form-row {
        grid-template-columns: 1fr;
    }
    
    .ctc-form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ctc-slider-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ctc-nav-tabs {
        flex-direction: column;
    }
    
    .ctc-nav-tab {
        text-align: center;
        border-bottom: 1px solid var(--ctc-border);
        border-right: none;
    }
    
    .ctc-feature-item,
    .ctc-benefit-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Success states */
.ctc-success-content {
    text-align: center;
}

.ctc-success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.ctc-next-steps {
    background: rgba(var(--ctc-accent-rgb), 0.1);
    padding: 20px;
    border-radius: var(--ctc-radius);
    margin: 20px 0;
    text-align: left;
}

.ctc-next-steps h4 {
    color: var(--ctc-accent-color);
    margin-bottom: 15px;
}

.ctc-next-steps ol {
    margin: 0;
    padding-left: 20px;
}

.ctc-next-steps li {
    margin-bottom: 8px;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(var(--ctc-accent-rgb), 0.2);
    color: #5CB85C;
}

.status-inactive {
    background: rgba(127, 140, 141, 0.2);
    color: #6C7B7D;
}

.status-suspended {
    background: rgba(231, 76, 60, 0.2);
    color: #D9534F;
}

/* Animations */
.ctc-btn-loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Alert notifications */
.ctc-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--ctc-radius);
    box-shadow: var(--ctc-shadow-hover);
    font-weight: 600;
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.ctc-alert-success {
    background: rgb(242,251,232);
    border-left: 4px solid var(--ctc-accent-color);
    color: #5CB85C;
}

.ctc-alert-error {
    background: rgb(253,238,235);
    border-left: 4px solid #E74C3C;
    color: #D9534F;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Powered By Credit */
.ctc-powered-by {
    text-align: center;
    margin-top: 0px;
    padding-top: 5px;
    border-top: 0px solid var(--ctc-border);
    font-size: 0.875rem;
    color: var(--ctc-text-light);
    opacity: 0.8;
}

.ctc-powered-by a {
    color: var(--ctc-primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ctc-powered-by a:hover {
    color: var(--ctc-primary-dark);
    text-decoration: underline;
}

/* Contact Information */
.ctc-contact-info {
    text-align: center;
    margin: 10px 0;
    font-size: 0.875rem;
    color: var(--ctc-text-light);
}

.ctc-contact-info a {
    color: var(--ctc-primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ctc-contact-info a:hover {
    color: var(--ctc-primary-dark);
    text-decoration: underline;
}

.ctc-contact-info span {
    color: var(--ctc-text-light);
}

/* Profile Form Styling */
.ctc-profile-form .ctc-form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--ctc-radius);
}

.ctc-profile-form .ctc-form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--ctc-primary-color);
    border-bottom: 2px solid var(--ctc-border);
    padding-bottom: 10px;
}

.ctc-field-note {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--ctc-text-light);
    font-style: italic;
}