/* Focus Area Version 1 CSS
   Theme: black, white, silver
*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #000;
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px;
    background:
        radial-gradient(circle at top, #222 0%, #000 55%);
}

.home-header {
    text-align: center;
    padding: 24px 0 16px;
}

.logo {
    width: 190px;
    max-width: 75%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.daily-card,
.card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #c0c0c0;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.08);
}

.daily-card.completed {
    border-color: #777;
    opacity: 0.85;
}

.small-label {
    margin: 0 0 6px;
    color: #c0c0c0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1, h2, p {
    margin-top: 0;
}

h1 {
    font-size: 22px;
}

h2 {
    font-size: 20px;
    line-height: 1.3;
}

.muted {
    color: #c9c9c9;
}

.hint {
    color: #b9b9b9;
    font-size: 14px;
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-button {
    display: block;
    text-align: center;
    padding: 24px 18px;
    background: #fff;
    color: #000;
    border: 2px solid #c0c0c0;
    border-radius: 18px;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.2s;
}

.main-button:active {
    transform: scale(0.98);
    background: #c0c0c0;
}

.top-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.top-bar h1 {
    margin: 0;
}

/* Updated navigation buttons: Home, Back, Graph List */
.back-link {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #c0c0c0;
    white-space: nowrap;
    line-height: 1;
}

.back-link:active {
    transform: scale(0.96);
    background: #c0c0c0;
}

.center-card {
    text-align: center;
    margin-top: 40px;
}

.date-box {
    display: inline-block;
    border: 1px solid #c0c0c0;
    padding: 10px 18px;
    border-radius: 10px;
    color: #fff;
    background: #111;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.btn {
    display: inline-block;
    border: none;
    border-radius: 14px;
    padding: 13px 18px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-secondary {
    background: #c0c0c0;
    color: #000;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #c0c0c0;
}

.large-btn {
    width: 100%;
    font-size: 18px;
}

.full-width {
    width: 100%;
    margin-top: 14px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form label {
    color: #c0c0c0;
    font-size: 14px;
}

.form input {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid #c0c0c0;
    background: #111;
    color: #fff;
    font-size: 16px;
}

/* New large FA description box */
.description-box {
    width: 100%;
    min-height: 180px;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid #c0c0c0;
    background: #111;
    color: #fff;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    resize: vertical;
    line-height: 1.5;
}

.description-box::placeholder {
    color: #8f8f8f;
}

.error-box {
    background: #401010;
    border: 1px solid #ff9b9b;
    color: #ffd0d0;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.fa-list {
    margin-top: 16px;
}

.fa-row {
    border-bottom: 1px solid #333;
    padding: 14px 0;
}

.fa-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fa-number {
    color: #c0c0c0;
    min-width: 44px;
    font-weight: bold;
}

.fa-title {
    flex: 1;
    font-size: 16px;
}

.dots-btn {
    background: #222;
    color: #fff;
    border: 1px solid #c0c0c0;
    border-radius: 999px;
    width: 34px;
    height: 26px;
    cursor: pointer;
    font-weight: bold;
}

.fa-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-left: 44px;
}

.mini-btn {
    border: 1px solid #c0c0c0;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 13px;
}

.mini-btn.danger {
    border-color: #ff9b9b;
    color: #ffbdbd;
}

.fa-check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 430px;
    overflow-y: auto;
    padding-right: 4px;
}

.fa-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    border: 1px solid #444;
    border-radius: 12px;
    background: #080808;
}

.fa-check-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 10;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background: #111;
    border: 1px solid #c0c0c0;
    color: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 360px;
    padding: 20px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

/* New modal description display */
.modal-description {
    white-space: pre-line;
    line-height: 1.5;
    color: #ffffff;
    margin-top: 12px;
    padding-right: 4px;
    max-height: 360px;
    overflow-y: auto;
}

.chart-container {
    width: 100%;
    height: 380px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 12px;
}

.history-item p {
    margin-bottom: 0;
}

.percentage-badge {
    background: #fff;
    color: #000;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: bold;
}

.not-completed-group {
    border-top: 1px solid #333;
    padding-top: 12px;
    margin-top: 12px;
}

.not-completed-group ul {
    margin-bottom: 0;
    padding-left: 20px;
}

/* ===============================
   GRAPH RECORD LIST PAGE
================================ */

.graph-record-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.graph-record-card {
    display: block;
    padding: 14px;
    border: 1px solid #333;
    border-radius: 14px;
    background: #080808;
    transition: 0.2s;
}

.graph-record-card:active {
    transform: scale(0.98);
    background: #151515;
}

.graph-record-click-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.graph-record-left h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.graph-record-left p {
    margin: 0 0 4px;
}

.graph-record-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.week-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
}

.week-status.complete {
    background: #ffffff;
    color: #000000;
}

.week-status.progress {
    background: #c0c0c0;
    color: #000000;
}

.graph-manage-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #222;
}

.graph-manage-actions .mini-btn {
    flex: 1;
    text-align: center;
}

.graph-manage-actions .mini-btn.danger {
    width: 100%;
    text-align: center;
}

/* Graph detail top bar */
.detail-top-bar {
    justify-content: space-between;
}

.detail-top-bar h1 {
    margin: 0;
    flex: 1;
    text-align: center;
}

.home-link {
    text-align: right;
}

/* Mobile-first already, but this helps very small phones */
@media (max-width: 360px) {
    .app-shell {
        padding: 12px;
    }

    .main-button {
        font-size: 19px;
        padding: 20px 14px;
    }

    .logo {
        width: 160px;
    }

    .back-link {
        font-size: 12px;
        padding: 6px 9px;
    }

    .top-bar {
        gap: 8px;
    }

    .detail-top-bar h1 {
        font-size: 19px;
    }
}