/* MY30 AI - Styles */
.my30-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #222;
}

/* Cards */
.my30-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.my30-card h2 {
    font-size: 26px;
    margin-bottom: 14px;
    color: #222;
}

.my30-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #222;
}

/* Forms */
.my30-field {
    margin-bottom: 24px;
}

.my30-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 15px;
}

/* Inputs, Textareas, Selects */
.my30-field input,
.my30-field textarea,
.my30-field select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color: #333;
}

.my30-field input:focus,
.my30-field textarea:focus,
.my30-field select:focus {
    border-color: #40b5ad;
    box-shadow: 0 0 8px rgba(64, 181, 173, 0.4);
    outline: none;
}

.my30-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.my30-btn {
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    border: none;
    box-shadow: 0 5px 15px rgba(64, 181, 173, 0.4);
    background: linear-gradient(135deg, #40b5ad 0%, #2c8b88 100%);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.my30-btn:hover, .my30-btn:focus {
    background: linear-gradient(135deg, #2c8b88 0%, #1e625f 100%);
    box-shadow: 0 7px 20px rgba(44, 139, 136, 0.7);
    transform: translateY(-2px);
    outline: none;
}

.my30-btn-primary {
    /* Inherits from .my30-btn */
}

.my30-btn-secondary {
    background: #ffffff;
    color: #40b5ad;
    border: 2px solid #40b5ad;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
}

.my30-btn-secondary:hover, .my30-btn-secondary:focus {
    background: #40b5ad;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(64, 181, 173, 0.5);
    transform: translateY(-2px);
    outline: none;
}

/* Loading */
.my30-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #40b5ad;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

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

/* Grid Layout */
.my30-grid {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 24px;
}

@media (max-width: 1200px) {
    .my30-grid {
        grid-template-columns: 1fr;
    }
}

/* Timeline */
.my30-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
}

.my30-timeline li {
    display: flex;
    justify-content: space-between;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.my30-timeline li:hover {
    background: #f0f7f7;
}

.my30-timeline li.active {
    background: #40b5ad;
    color: #ffffff;
}

.my30-timeline .status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.my30-timeline .status.done {
    background: #d4f4dd;
    color: #2e7d32;
}

.my30-timeline .status.today {
    background: #40b5ad;
    color: #ffffff;
}

.my30-timeline .status.upcoming {
    background: #e3f2fd;
    color: #1976d2;
}

/* Sections */
.my30-section {
    margin-bottom: 36px;
}

.my30-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.my30-section textarea {
    width: 100%;
    padding: 18px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.8;
    resize: vertical;
    color: #333;
}

.my30-section textarea:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Login message */
.my30-login {
    text-align: center;
    padding: 70px 25px;
    background: #ffffff;
    border-radius: 14px;
    max-width: 520px;
    margin: 50px auto;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Utility */
.my30-label {
    font-size: 13px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.my30-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
}

.my30-day-label {
    font-size: 15px;
    color: #666;
    margin-bottom: 18px;
}

.my30-day-label span {
    font-weight: 700;
    color: #40b5ad;
}


.my30-progress-wrap { margin-bottom: 18px; }
.my30-progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #eaf4f3;
    overflow: hidden;
    margin-bottom: 10px;
}
.my30-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, #40b5ad 0%, #2c8b88 100%);
    transition: width 0.35s ease;
}
.my30-toast {
    position: sticky;
    top: 18px;
    z-index: 9999;
    margin: 0 auto 14px;
    max-width: 420px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.my30-toast.show { opacity: 1; transform: translateY(0); }
.my30-toast.success { background: #2c8b88; }
.my30-toast.error { background: #c0392b; }
.my30-timeline li.is-locked { opacity: 0.72; }
.my30-timeline .status.locked {
    background: #f1f1f1;
    color: #666;
}
.my30-timeline .status.past {
    background: #eceff1;
    color: #455a64;
}
.my30-timeline .status.missed {
    background: #fdecea;
    color: #c0392b;
}
.my30-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}


.my30-save-actions {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.my30-save-hint {
    margin-top: 14px;
    font-size: 14px;
    color: #666;
}

.my30-progress-wrap {
    margin-bottom: 18px;
}

.my30-progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #deeceb;
    overflow: hidden;
    margin-bottom: 12px;
}

.my30-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, #40b5ad 0%, #2c8b88 100%);
}

.my30-history-note {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f4f8f8;
    color: #355654;
    font-size: 14px;
}

.my30-timeline .status.locked {
    background: #f0f0f0;
    color: #707070;
}

.my30-timeline .status.missed {
    background: #fff0f0;
    color: #b44343;
}

.my30-timeline li.is-locked {
    opacity: 0.75;
}

.my30-timeline li.active .status {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.my30-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #202a2a;
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 99999;
}

.my30-toast.visible {
    opacity: 1;
    transform: translateY(0);
}
