/**
 * LifeSci BaZi Dashboard Styles
 * Matches React Native DashboardScreen.js styling
 */

/* ===== Dashboard Wrapper ===== */
.lifesci-dashboard-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #0E1530;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ===== Header Section ===== */
.lifesci-dashboard-header {
    margin-top: 20px;
    margin-bottom: 30px;
}

.lifesci-dashboard-title {
    font-size: 24px;
    color: #F7B500;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.lifesci-dashboard-subtitle {
    font-size: 16px;
    color: #fff;
    margin: 0 0 4px 0;
}

.lifesci-dashboard-subtitle span {
    color: #F7B500;
    font-weight: 700;
}

.lifesci-dashboard-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
}

/* ===== Form Section ===== */
.lifesci-dashboard-form-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.lifesci-bazi-form .form-group {
    margin-bottom: 20px;
}

.lifesci-bazi-form label {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.lifesci-input,
.lifesci-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 16px;
    background-color: #fff !important;
    color: #000 !important;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.lifesci-input:focus,
.lifesci-select:focus {
    border-color: #F7B500;
    outline: none;
}

.lifesci-date-input,
.lifesci-time-input {
    cursor: pointer;
}

.lifesci-datetime-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lifesci-datetime-field {
    flex: 1;
    min-width: 150px;
}

.lifesci-field-label {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 6px !important;
}

.lifesci-helper-text {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 8px;
}

/* ===== Submit Button ===== */
.lifesci-submit-btn {
    width: 100%;
    padding: 16px;
    background: #F7B500;
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.lifesci-submit-btn:hover {
    background: #ffc700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 181, 0, 0.4);
}

.lifesci-submit-btn:active {
    transform: translateY(0);
}

/* ===== Loading State ===== */
.lifesci-loading {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.lifesci-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(247, 181, 0, 0.2);
    border-top-color: #F7B500;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: lifesci-spin 1s linear infinite;
}

@keyframes lifesci-spin {
    to { transform: rotate(360deg); }
}

/* ===== Error State ===== */
.lifesci-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #F44336;
    border-radius: 10px;
    padding: 16px;
    color: #F44336;
    text-align: center;
    margin: 20px 0;
}

/* ===== Section Titles ===== */
.lifesci-section-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

/* ===== Day Master Hero Card ===== */
.lifesci-dm-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    margin-bottom: 20px;
}

.lifesci-dm-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.lifesci-dm-icon {
    font-size: 42px;
    margin: 10px 0;
}

.lifesci-dm-archetype {
    color: #A0E4FF;
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0;
}

.lifesci-dm-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0;
}

/* ===== Life Overview Card ===== */
.lifesci-life-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 20px;
}

.lifesci-life-title {
    color: #F7B500;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.lifesci-life-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* ===== Four Pillars Section ===== */
.lifesci-pillars-section {
    margin-bottom: 20px;
}

.lifesci-pillar-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lifesci-pillar-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lifesci-pillar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lifesci-pillar-name {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.lifesci-pillar-display {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.lifesci-pillar-english {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 4px;
}

.lifesci-pillar-tengod {
    color: #F7B500;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
}

.lifesci-pillar-life-aspect {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    margin-top: 4px;
}

.lifesci-pillar-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lifesci-pillar-detail-label {
    color: #F7B500;
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 4px 0;
}

.lifesci-pillar-detail-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* ===== Five Elements Section ===== */
.lifesci-fe-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.lifesci-fe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.lifesci-expand-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lifesci-expand-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lifesci-fe-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lifesci-fe-row:last-child {
    border-bottom: none;
}

.lifesci-fe-label {
    width: 70px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.lifesci-fe-bar-wrapper {
    flex: 1;
    height: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 12px;
    overflow: hidden;
}

.lifesci-fe-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.lifesci-fe-value {
    width: 45px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    text-align: right;
}

.lifesci-fe-details {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.lifesci-fe-summary {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

/* ===== Locked Box ===== */
.lifesci-locked-box {
    margin-top: 16px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

.lifesci-locked-box:hover {
    background: rgba(247, 181, 0, 0.08);
    border-color: rgba(247, 181, 0, 0.5);
}

.lifesci-locked-title {
    color: #F7B500;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.lifesci-locked-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.lifesci-locked-cta {
    color: #F7B500;
    font-weight: 600;
    font-size: 13px;
    margin: 0;
}

/* ===== Luck Pillars Section ===== */
.lifesci-luck-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.lifesci-luck-row {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lifesci-luck-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.lifesci-luck-row.active {
    border-color: #F7B500;
    background: rgba(247, 181, 0, 0.08);
}

.lifesci-luck-left {
    flex: 1;
}

.lifesci-luck-period {
    color: #fff;
    font-size: 14px;
    margin: 0;
}

.lifesci-luck-period.active {
    color: #F7B500;
}

.lifesci-luck-age {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 2px;
}

.lifesci-luck-right {
    flex: 1.4;
    text-align: right;
}

.lifesci-luck-display {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.lifesci-luck-english {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 2px;
}

.lifesci-luck-details {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
}

.lifesci-luck-detail-label {
    color: #F7B500;
    font-weight: 600;
    font-size: 13px;
    margin: 8px 0 4px 0;
}

.lifesci-luck-detail-label:first-child {
    margin-top: 0;
}

.lifesci-luck-detail-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

/* ===== Inline Lock Box ===== */
.lifesci-inline-lock {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(247, 181, 0, 0.6);
    background: rgba(247, 181, 0, 0.05);
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.lifesci-inline-lock:hover {
    background: rgba(247, 181, 0, 0.12);
}

.lifesci-inline-lock-title {
    color: #F7B500;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.lifesci-inline-lock-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.lifesci-inline-lock-cta {
    color: #F7B500;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

/* ===== Bone Weight Card ===== */
.lifesci-bone-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.lifesci-bone-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.lifesci-bone-weight {
    color: #F7B500;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 16px 0;
}

.lifesci-bone-level {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
}

.lifesci-bone-poem {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-top: 12px;
}

/* ===== Premium Feature Cards ===== */
.lifesci-premium-features {
    margin-top: 24px;
}

.lifesci-feature-card {
    display: block;
    background: rgba(255, 255, 255, 0.06);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lifesci-feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.lifesci-feature-card.lifesci-locked-card {
    border-color: #F7B500;
    border-width: 1.2px;
    background: rgba(247, 181, 0, 0.06);
}

.lifesci-feature-card.lifesci-unlocked-card {
    border-color: #46b450 !important;
    border-width: 2px;
    background: rgba(70, 180, 80, 0.1) !important;
}

.lifesci-feature-card.lifesci-unlocked-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(70, 180, 80, 0.25);
    border-color: #46b450;
}

.lifesci-feature-card.lifesci-unlocked-card .lifesci-lock-row {
    border-top-color: rgba(70, 180, 80, 0.3);
}

.lifesci-feature-title {
    color: #F7B500;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.lifesci-feature-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.lifesci-lock-row {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lifesci-lock-text {
    color: #F7B500;
    font-size: 13px;
    font-weight: 700;
}

/* ===== Action Buttons ===== */
.lifesci-action-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.lifesci-action-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.lifesci-action-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.lifesci-action-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lifesci-action-primary {
    background: #F7B500;
    color: #000;
}

.lifesci-action-primary:hover {
    background: #ffc700;
}

/* ===== Date/Time Picker Modal ===== */
.lifesci-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lifesci-picker-content {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lifesci-picker-title {
    margin: 0 0 16px 0;
    color: #000;
    font-size: 18px;
    font-weight: 600;
}

.lifesci-picker-container {
    margin-bottom: 20px;
}

.lifesci-picker-container input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    box-sizing: border-box;
}

.lifesci-picker-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.lifesci-picker-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.lifesci-picker-cancel {
    background: #f5f5f5;
    color: #000;
    border: 1px solid #ccc;
}

.lifesci-picker-cancel:hover {
    background: #e0e0e0;
}

.lifesci-picker-confirm {
    background: #F7B500;
    color: #000;
}

.lifesci-picker-confirm:hover {
    background: #ffc700;
}

/* ===== Element Colors ===== */
.element-wood { color: #4CAF50; }
.element-fire { color: #FF7043; }
.element-earth { color: #D4AF37; }
.element-metal { color: #B0BEC5; }
.element-water { color: #42A5F5; }

/* ===== Responsive Adjustments ===== */
@media (max-width: 600px) {
    .lifesci-dashboard-wrapper {
        padding: 15px;
    }
    
    .lifesci-dashboard-title {
        font-size: 20px;
    }
    
    .lifesci-dm-title {
        font-size: 24px;
    }
    
    .lifesci-datetime-row {
        flex-direction: column;
    }
    
    .lifesci-datetime-field {
        min-width: 100%;
    }
    
    .lifesci-action-row {
        flex-direction: column;
    }
    
    .lifesci-luck-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lifesci-luck-right {
        text-align: left;
        margin-top: 8px;
    }
}

/* ===== Premium Chart Fix: Hide Login Block When Logged In ===== */
body.logged-in .premium-login-block {
    display: none !important;
}


