/* Main Container */
.epicise-epi-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.epicise-epi-header {
    text-align: center;
    margin-bottom: 40px;
}

.epicise-epi-header h1 {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 10px;
}

.epicise-epi-header p {
    color: #ffffff;
    font-size: 16px;
}

/* Sections */
.epicise-epi-section {
    margin-bottom: 40px;
}

.epicise-epi-section h2 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #f97316;
}

/* Grid Layout */
.epicise-epi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Cards - matching your style */
.epicise-epi-card {
    background: #fef2e8;
    border-left: 4px solid #f97316;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.epicise-epi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.epicise-epi-card label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    font-size: 15px;
}

.epicise-epi-card input,
.epicise-epi-card select {
    width: 100%;
    padding: 12px;
    border: 2px solid #fed7aa;
    border-radius: 8px;
    font-size: 16px;
    background: #ffffff;
    transition: border-color 0.3s;
}

.epicise-epi-card input:focus,
.epicise-epi-card select:focus {
    outline: none;
    border-color: #f97316;
}

.epicise-epi-card small {
    display: block;
    margin-top: 6px;
    color: #9ca3af;
    font-size: 13px;
    font-style: italic;
}

/* Toggle */
.epicise-epi-toggle {
    background: #fef2e8;
    border-left: 4px solid #f97316;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.epicise-epi-toggle label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.epicise-epi-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Submit Button */
.epicise-epi-submit-container {
    text-align: center;
    margin: 40px 0;
}

.epicise-epi-submit {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.epicise-epi-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.epicise-epi-submit:active {
    transform: translateY(0);
}

/* Loading */
#epicise-epi-loading {
    text-align: center;
    padding: 60px;
}

.epicise-epi-spinner {
    border: 4px solid #fed7aa;
    border-top: 4px solid #f97316;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results */
.epicise-results-header {
    text-align: center;
    margin-bottom: 40px;
}

.epicise-main-result {
    background: linear-gradient(135deg, #fef2e8 0%, #fed7aa 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
    border-left: 6px solid #f97316;
}

.epicise-age-circle {
    width: 220px;
    height: 220px;
    margin: 0 auto 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.2);
    border: 6px solid #f97316;
}

.epicise-bio-age {
    font-size: 72px;
    font-weight: 700;
    color: #f97316;
    line-height: 1;
}

.epicise-age-label {
    font-size: 16px;
    color: #6b7280;
    margin-top: 8px;
    font-weight: 600;
}

.epicise-age-comparison {
    margin-top: 20px;
}

.epicise-age-comparison p {
    font-size: 18px;
    margin: 8px 0;
    color: #374151;
}

.epicise-age-comparison .younger {
    color: #10b981;
    font-weight: 700;
    font-size: 24px;
}

.epicise-age-comparison .older {
    color: #ef4444;
    font-weight: 700;
    font-size: 24px;
}

/* System Breakdown */
.epicise-system-breakdown {
    margin: 40px 0;
}

.epicise-system-breakdown h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1f2937;
}

.epicise-system {
    background: #fef2e8;
    border-left: 4px solid #f97316;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.epicise-system:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.epicise-system.excellent {
    background: #d1fae5;
    border-color: #10b981;
}

.epicise-system.good {
    background: #dbeafe;
    border-color: #3b82f6;
}

.epicise-system.needs-attention {
    background: #fee2e2;
    border-color: #ef4444;
}

.epicise-system-name {
    font-weight: 600;
    color: #374151;
    font-size: 16px;
}

.epicise-system-age {
    font-size: 24px;
    font-weight: 700;
    color: #f97316;
}

.epicise-system-diff {
    font-size: 18px;
    font-weight: 600;
}

/* Opportunities */
.epicise-opportunities {
    margin: 40px 0;
}

.epicise-opportunities h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1f2937;
}

.epicise-opportunity {
    background: #fef2e8;
    border-left: 4px solid #f97316;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.epicise-opportunity h3 {
    color: #f97316;
    margin-bottom: 10px;
}

.epicise-opp-impact {
    font-weight: 700;
    color: #10b981;
    margin-bottom: 15px;
}

.epicise-opportunity ul {
    list-style: none;
    padding: 0;
}

.epicise-opportunity li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #374151;
}

.epicise-opportunity li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f97316;
    font-weight: 700;
}

/* Next Steps */
.epicise-next-steps {
    background: #fef2e8;
    border-left: 4px solid #f97316;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.epicise-next-steps h2 {
    color: #1f2937;
    margin-bottom: 20px;
}

.epicise-next-steps ul {
    list-style: none;
    padding: 0;
}

.epicise-next-steps li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: #374151;
    font-size: 16px;
}

.epicise-next-steps li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #f97316;
    font-weight: 700;
    font-size: 20px;
}

/* Share Buttons */
.epicise-share {
    text-align: center;
    margin: 40px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.epicise-share-btn,
.epicise-restart-btn {
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.epicise-share-btn {
    background: #f97316;
    color: white;
}

.epicise-restart-btn {
    background: #e5e7eb;
    color: #374151;
}

.epicise-share-btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

.epicise-restart-btn:hover {
    background: #d1d5db;
}

/* History Page Styles */
.epicise-history-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.epicise-history-header {
    text-align: center;
    margin-bottom: 40px;
}

.epicise-history-header h1 {
    font-size: 36px;
    color: #1f2937;
    margin-bottom: 10px;
}

.epicise-login-required {
    text-align: center;
    padding: 60px;
    background: #fef2e8;
    border-radius: 16px;
    border-left: 4px solid #f97316;
}

.epicise-login-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 32px;
    background: #f97316;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
}

.epicise-history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.epicise-stat-card {
    background: #fef2e8;
    border-left: 4px solid #f97316;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.epicise-stat-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
    font-weight: 600;
}

.epicise-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
}

.epicise-chart-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.epicise-chart-container h2 {
    margin-bottom: 20px;
    color: #1f2937;
}

.epicise-assessments-list h2 {
    margin-bottom: 20px;
    color: #1f2937;
}

.epicise-assessment-item {
    background: #fef2e8;
    border-left: 4px solid #f97316;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.epicise-assessment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.epicise-assessment-date {
    display: flex;
    flex-direction: column;
}

.epicise-assessment-date strong {
    font-size: 16px;
    color: #1f2937;
}

.epicise-assessment-date span {
    font-size: 13px;
    color: #9ca3af;
}

.epicise-assessment-result {
    text-align: center;
}

.epicise-bio-age-small {
    font-size: 32px;
    font-weight: 700;
    color: #f97316;
    line-height: 1;
}

.epicise-diff-small {
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
}

.epicise-diff-small.younger {
    color: #10b981;
}

.epicise-diff-small.older {
    color: #ef4444;
}

.epicise-delete-btn {
    padding: 8px 16px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.epicise-delete-btn:hover {
    background: #dc2626;
}

.epicise-assessment-systems {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.epicise-mini-system {
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    border: 1px solid #fed7aa;
}

@media (max-width: 768px) {
    .epicise-assessment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .epicise-epi-grid {
        grid-template-columns: 1fr;
    }
    
    .epicise-age-circle {
        width: 180px;
        height: 180px;
    }
    
    .epicise-bio-age {
        font-size: 60px;
    }
}

/* Maintenance Message */
.epicise-maintenance-message {
    background: linear-gradient(135deg, #fef2e8 0%, #fed7aa 100%);
    color: #1f2937;
    padding: 60px 40px;
    text-align: center;
    border-radius: 16px;
    max-width: 600px;
    margin: 40px auto;
    border: 2px solid #f97316;
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.3);
    border-left: 6px solid #f97316;
}

.epicise-maintenance-message h2 {
    color: #f97316;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.epicise-maintenance-message p {
    font-size: 18px;
    line-height: 1.6;
    margin: 10px 0;
    color: #374151;
}

.epicise-maintenance-message p:last-child {
    margin-top: 20px;
    font-weight: 600;
    color: #ea580c;
}
