/* ===== CSS Variables ===== */
:root {
    --peach-bg: #FFF2E0;
    --light-purple: #C0C9EE;
    --medium-purple: #A2AADB;
    --dark-purple: #898AC4;
    --white: #FFFFFF;
    --text-dark: #2D2D2D;
    --text-light: #5A5A5A;
    --success: #4CAF50;
    --shadow: 0 2px 8px rgba(137, 138, 196, 0.15);
    --shadow-hover: 0 4px 16px rgba(137, 138, 196, 0.25);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: var(--peach-bg);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== Loading Overlay ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 242, 224, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

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

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-purple);
    border-top-color: var(--dark-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== Header ===== */
.header {
    background: linear-gradient(135deg, var(--dark-purple), var(--medium-purple));
    color: white;
    padding: 1.5rem 1rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.countdown-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.sync-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.sync-indicator.syncing {
    background: #FFC107;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Stats Bar ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1.5rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-purple);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===== Mobile Navigation ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--light-purple);
    padding: 0.5rem;
    z-index: 99;
    box-shadow: 0 -2px 8px rgba(137, 138, 196, 0.1);
    overflow-x: auto;
}

.sidebar {
    display: none;
}

.desktop-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-btn {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 1rem;
    color: var(--text-dark);
    text-align: left;
    width: 100%;
}

.nav-btn:hover {
    background: var(--light-purple);
}

.nav-btn.active {
    background: var(--dark-purple);
    color: white;
}

.nav-icon {
    font-size: 1.25rem;
}

.nav-label {
    font-weight: 500;
}

/* ===== Main Content ===== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.content-wrapper {
    width: 100%;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-header {
    margin-bottom: 2rem;
}

.tab-header h2 {
    font-size: 2rem;
    color: var(--dark-purple);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

/* ===== Categories List (Roadmap) ===== */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.category-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--medium-purple), var(--light-purple));
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.category-title {
    flex: 1;
    min-width: 0;
}

.category-title h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text-dark);
}

.category-weight {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dark-purple);
}

.category-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    min-width: 80px;
}

.progress-text {
    font-size: 0.8125rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-purple);
    line-height: 1;
}
    user-select: none;
}

.category-header:hover {
    background: linear-gradient(135deg, var(--dark-purple), var(--medium-purple));
    color: white;
}

.expand-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.category-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    width: 100px;
}

.progress-fill {
    height: 100%;
    background: var(--dark-purple);
    transition: width 0.3s ease;
}

.category-topics {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-card.expanded .category-topics {
    max-height: 2000px;
}

.topics-list {
    padding: 0.5rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.topic-item {
    display: flex;
    align-items: flex-start;
    padding: 0.875rem 1rem;
    background: var(--peach-bg);
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.topic-item:hover {
    background: #FFF8F0;
    border-color: var(--light-purple);
}

.topic-item.completed {
    background: #F5F7FF;
    border-color: var(--medium-purple);
}

.topic-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 0.75rem;
    flex: 1;
    min-height: 24px;
}

.topic-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 2px 0 0 0;
    cursor: pointer;
    accent-color: var(--dark-purple);
    border-radius: 4px;
}

.topic-name {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-dark);
    flex: 1;
    padding-top: 1px;
}

.topic-item.completed .topic-name {
    text-decoration: line-through;
    color: var(--text-light);
    opacity: 0.7;
}

/* ===== Study Log Form ===== */
.log-form-card, .questions-form-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.log-form-card h3, .questions-form-card h3 {
    color: var(--dark-purple);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: white;
    border: 2px solid var(--light-purple);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-purple);
    box-shadow: 0 0 0 3px rgba(137, 138, 196, 0.1);
    background: #FEFEFE;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23898AC4' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ===== Buttons ===== */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--dark-purple), var(--medium-purple));
    color: white;
    box-shadow: 0 4px 6px rgba(137, 138, 196, 0.25);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(137, 138, 196, 0.35);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(137, 138, 196, 0.25);
}

.btn-primary:disabled {
    background: #E0E0E0;
    color: #A0A0A0;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.btn-primary:disabled::before {
    display: none;
}

.btn-secondary {
    background: white;
    color: var(--dark-purple);
    border: 2px solid var(--dark-purple);
    box-shadow: 0 2px 4px rgba(137, 138, 196, 0.15);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--light-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(137, 138, 196, 0.25);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(137, 138, 196, 0.15);
}

/* ===== Recent Logs ===== */
.recent-logs h3 {
    color: var(--dark-purple);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.logs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.log-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.log-date {
    font-weight: 600;
    color: var(--dark-purple);
}

.log-hours {
    background: var(--light-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.log-method {
    display: inline-block;
    background: var(--peach-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.log-topics {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.log-notes {
    color: var(--text-light);
    font-size: 0.875rem;
    font-style: italic;
}

/* ===== ChatGPT Prompts ===== */
.prompts-container {
    display: grid;
    gap: 1.5rem;
}

.prompt-category {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.prompt-category h3 {
    color: var(--dark-purple);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.prompt-item {
    background: var(--peach-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.prompt-text {
    flex: 1;
    font-size: 0.95rem;
}

.btn-copy {
    padding: 0.75rem 1.5rem;
    background: var(--dark-purple);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy:hover {
    background: var(--medium-purple);
}

.btn-copy.copied {
    background: var(--success);
}

/* ===== Questions Tracker ===== */
.questions-progress {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.progress-circle {
    position: relative;
}

.progress-circle .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-purple);
}

.progress-goal {
    display: block;
    font-size: 1.25rem;
    color: var(--text-light);
}

.questions-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 400px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-purple);
}

.stat-name {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.quick-add-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-quick-add {
    padding: 1rem;
    background: var(--light-purple);
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--dark-purple);
}

.btn-quick-add:hover {
    background: var(--medium-purple);
    transform: scale(1.05);
    color: white;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

.modal-button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-button-group .btn-primary,
.modal-button-group .btn-secondary {
    width: 100%;
    margin: 0;
}

.setup-form {
    margin-top: 1.5rem;
}

/* ===== Progress Tab ===== */
.progress-overview {
    margin-bottom: 2rem;
}

/* ===== Daily Schedule Tab ===== */
.current-time-indicator {
    background: linear-gradient(135deg, var(--dark-purple), var(--medium-purple));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.time-now {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
}

.time-icon {
    font-size: 2.5rem;
}

.schedule-date {
    font-size: 1rem;
    opacity: 0.9;
}

.daily-schedule {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.schedule-block {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border-left: 4px solid var(--medium-purple);
}

.schedule-block.break-block {
    background: linear-gradient(135deg, #FFF3E0, var(--peach-bg));
    border-left-color: #FF9800;
}

.schedule-block.completed {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border-left-color: #4CAF50;
}

.schedule-block.current {
    border-left-width: 6px;
    box-shadow: var(--shadow-hover);
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { border-left-color: var(--dark-purple); }
    50% { border-left-color: var(--light-purple); }
}

.schedule-block:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.schedule-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-purple);
}

.schedule-duration {
    font-size: 0.875rem;
    color: var(--text-light);
    background: var(--peach-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.schedule-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.pending {
    background: #E0E0E0;
    color: var(--text-light);
}

.status-badge.current {
    background: var(--medium-purple);
    color: white;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.status-badge.completed {
    background: #4CAF50;
    color: white;
}

.complete-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid var(--dark-purple);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.schedule-block.completed .complete-checkbox {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.schedule-content {
    margin-bottom: 0.75rem;
}

.schedule-category {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.schedule-topics {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

.break-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #FF6F00;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-suggestion {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

.schedule-summary {
    margin-bottom: 2rem;
}

.summary-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.summary-header h3 {
    color: var(--dark-purple);
    font-size: 1.5rem;
}

.completion-badge {
    background: var(--light-purple);
    color: var(--dark-purple);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-purple);
}

.schedule-controls {
    text-align: center;
}

.schedule-controls .btn-secondary {
    max-width: 300px;
    margin: 0 auto;
}

/* Schedule Topics List - Interactive Checkboxes */
.block-topics {
    margin: 1rem 0;
}

.topics-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: block;
}

.schedule-topics-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.schedule-topic-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: var(--peach-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.schedule-topic-item:hover {
    background: #FFF8F0;
    border-color: var(--light-purple);
}

.schedule-topic-item.completed {
    background: #F5F7FF;
    border-color: var(--medium-purple);
}

.schedule-topic-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 1px 0 0 0;
    cursor: pointer;
    accent-color: var(--dark-purple);
}

.schedule-topic-name {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-dark);
    flex: 1;
}

.schedule-topic-item.completed .schedule-topic-name {
    text-decoration: line-through;
    color: var(--text-light);
    opacity: 0.7;
}

.more-topics-hint {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
}

.block-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #E0E0E0;
}

.block-category strong {
    font-size: 1rem;
    color: var(--dark-purple);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.block-header h4 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin: 0;
}

.block-duration {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 600;
}

.block-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

.block-content {
    flex: 1;
}

.btn-mark-complete {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    background: var(--light-purple);
    border: 2px solid var(--medium-purple);
    border-radius: 8px;
    font-weight: 600;
    color: var(--dark-purple);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-mark-complete:hover {
    background: var(--medium-purple);
    color: white;
}

.schedule-block.completed .btn-mark-complete {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.break-message {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

/* Timer Controls */
.timer-controls {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #E0E0E0;
}

.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-purple);
}

.timer-display i {
    font-size: 1.75rem;
    color: var(--medium-purple);
}

.timer-time {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.timer-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-timer {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-start {
    background: #4CAF50;
    color: white;
}

.btn-start:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.btn-pause {
    background: #FF9800;
    color: white;
}

.btn-pause:hover {
    background: #FB8C00;
    transform: translateY(-1px);
}

.btn-resume {
    background: #2196F3;
    color: white;
}

.btn-resume:hover {
    background: #1976D2;
    transform: translateY(-1px);
}

.btn-stop {
    background: #F44336;
    color: white;
}

.btn-stop:hover {
    background: #D32F2F;
    transform: translateY(-1px);
}

.btn-manual {
    background: var(--medium-purple);
    color: white;
}

.btn-manual:hover {
    background: var(--dark-purple);
    transform: translateY(-1px);
}

/* Weekly Progress Card */
.weekly-progress {
    margin-bottom: 2rem;
}

.weekly-card {
    background: linear-gradient(135deg, var(--dark-purple), var(--medium-purple));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.weekly-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.weekly-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.weekly-stat {
    text-align: center;
}

.weekly-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.weekly-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.weekly-target {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.week-progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
}

.week-progress-fill {
    height: 100%;
    background: white;
    transition: width 0.3s ease;
    border-radius: 6px;
}

/* Flexible Session Button */
.flexible-session {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-add-session {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.btn-add-session:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Session completion badges with hours */
.session-hours-display {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Font Awesome Icon Styling */
.nav-icon i {
    font-size: 1.25rem;
}

.empty-state-icon i {
    font-size: 3rem;
}

.status-badge i {
    margin-right: 0.25rem;
}

.break-label i {
    font-size: 1.5rem;
}

h1 i, h2 i {
    margin-left: 0.5rem;
}

.subtitle i {
    margin-left: 0.25rem;
}

.overall-progress-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.overall-progress-card h3 {
    color: var(--dark-purple);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.progress-circle-large {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.progress-text-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-purple);
    line-height: 1;
}

.progress-label-small {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.progress-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.summary-item {
    text-align: center;
}

.summary-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-purple);
}

.summary-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.category-progress-breakdown,
.areas-to-improve,
.strengths-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.category-progress-breakdown h3,
.areas-to-improve h3,
.strengths-section h3 {
    color: var(--dark-purple);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.subtitle-small {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.category-progress-item {
    padding: 1rem;
    border-radius: 8px;
    background: var(--peach-bg);
    margin-bottom: 1rem;
}

.category-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.category-name-progress {
    font-weight: 600;
    color: var(--text-dark);
}

.category-percentage-badge {
    font-size: 0.875rem;
    color: var(--text-light);
}

.category-completion {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-purple);
}

.category-progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.category-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--medium-purple), var(--dark-purple));
    transition: width 0.3s ease;
    border-radius: 6px;
}

.category-status {
    font-size: 0.875rem;
    color: var(--text-light);
}

.improve-item {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 4px solid #FF9800;
}

.improve-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.improve-category {
    font-weight: 600;
    color: var(--text-dark);
}

.improve-completion {
    font-size: 0.875rem;
    font-weight: 600;
    color: #FF6F00;
}

.improve-suggestion {
    font-size: 0.875rem;
    color: var(--text-light);
}

.strength-item {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 4px solid #4CAF50;
}

.strength-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.strength-category {
    font-weight: 600;
    color: var(--text-dark);
}

.strength-completion {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2E7D32;
}

.strength-encouragement {
    font-size: 0.875rem;
    color: var(--text-light);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1rem;
}

/* ===== Responsive Design ===== */

/* Mobile (iPhone) */
@media (max-width: 768px) {
    .mobile-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }
    
    .mobile-nav .nav-btn {
        flex-direction: column;
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
        gap: 0.25rem;
    }
    
    .mobile-nav .nav-icon {
        font-size: 1.25rem;
    }
    
    .main-content {
        padding-bottom: 5rem;
    }
    
    .header h1 {
        font-size: 1.25rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Tablet (iPad Pro) */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-bar {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .categories-list {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
    
    .prompts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Reset Section Styles - Now in Settings Modal */
.sidebar-settings {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 2px solid var(--peach-bg);
}

.settings-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    background: white;
    border: 2px solid var(--light-purple);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark-purple);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.settings-btn:hover {
    background: var(--light-purple);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(137, 138, 196, 0.2);
}

.settings-btn i {
    font-size: 1.125rem;
}

/* Settings Modal */
.settings-modal-content {
    max-width: 600px;
    width: 90%;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--peach-bg);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark-purple);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--peach-bg);
    color: var(--dark-purple);
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.settings-section-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reset-option-btn {
    width: 100%;
    padding: 1.25rem;
    background: white;
    border: 2px solid var(--light-purple);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.reset-option-btn:hover {
    background: var(--peach-bg);
    border-color: var(--medium-purple);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(137, 138, 196, 0.15);
}

.reset-option-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--light-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark-purple);
    flex-shrink: 0;
}

.reset-option-content {
    flex: 1;
}

.reset-option-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.reset-option-desc {
    font-size: 0.875rem;
    color: var(--text-light);
}

.reset-option-danger {
    border-color: #F44336;
}

.reset-option-danger:hover {
    background: #FFEBEE;
    border-color: #D32F2F;
}

.reset-option-danger .reset-option-icon {
    background: #FFEBEE;
    color: #F44336;
}

.reset-option-danger .reset-option-title {
    color: #D32F2F;
}

/* Old reset button styles - Remove */
.reset-section-title,
.reset-btn,
.reset-btn-danger,
.sidebar-reset-section {
    display: none;
}

.btn-danger {
    background: #F44336 !important;
}

.btn-danger:hover {
    background: #D32F2F !important;
}

/* Desktop (MacBook Pro) */
@media (min-width: 1025px) {
    .sidebar {
        display: flex;
        flex-direction: column;
        width: 280px;
        padding: 2rem 1rem;
        background: white;
        border-radius: 12px;
        box-shadow: var(--shadow);
        margin-right: 2rem;
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
    
    .sidebar-settings {
        margin-top: auto;
        padding-top: 2rem;
        border-top: 2px solid var(--peach-bg);
    }
    
    .main-content {
        display: flex;
        align-items: flex-start;
    }
    
    .content-wrapper {
        flex: 1;
    }
    
    .categories-list {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
    
    .prompts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print styles */
@media print {
    .header, .mobile-nav, .sidebar, .btn-primary, .btn-secondary {
        display: none;
    }
}

