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

:root {
    /* Apple-inspired Color Palette */
    --primary-color: #007AFF;
    --primary-dark: #0051D5;
    --secondary-color: #34C759;
    --accent-color: #FF9500;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --danger-color: #FF3B30;
    --info-color: #007AFF;
    
    /* Neutral Colors */
    --bg-primary: #F5F5F7;
    --bg-secondary: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-tertiary: #86868B;
    --border-color: #D2D2D7;
    --divider-color: #E5E5EA;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    
    /* Spacing */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.47059;
    font-size: 17px;
    font-weight: 400;
    min-height: 100vh;
    padding: 40px 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.6s ease;
    position: relative;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Logo Top - Starfish Academy */
.header-logo-top {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.logo-starfish {
    height: 120px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    /* Remove white background with mix-blend-mode */
    mix-blend-mode: multiply;
}

.logo-starfish:hover {
    transform: scale(1.05);
}

/* Title with Badge */
.title-with-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-certified {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-certified:hover {
    transform: scale(1.05);
}

header h1 {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1.07143;
}

header h1 i {
    color: var(--primary-color);
}

.subtitle {
    font-size: 21px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.011em;
    line-height: 1.381;
    margin-top: 12px;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tabs */
.tabs-container {
    margin-bottom: 0;
}

.tabs-nav {
    display: flex;
    gap: 8px;
    background: var(--card-bg);
    padding: 8px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--divider-color);
}

.tab-button {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.tab-button i {
    font-size: 16px;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

/* Card */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--divider-color);
    animation: fadeInUp 0.6s ease;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.003em;
}

.card h2 i {
    color: var(--primary-color);
    font-size: 32px;
}

/* Info Banner */
.info-banner {
    background: var(--bg-primary);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--divider-color);
}

.info-banner i {
    font-size: 24px;
    color: var(--info-color);
}

.info-icon-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 50%;
}

.info-icon-clickable:hover {
    transform: scale(1.1);
    background: rgba(0, 122, 255, 0.1);
}

.info-banner div {
    flex: 1;
    font-size: 15px;
    color: var(--text-primary);
}

.info-banner strong {
    font-weight: 500;
}

.info-banner .separator {
    margin: 0 12px;
    color: var(--text-tertiary);
}

/* Main Analysis Table */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--divider-color);
}

.main-analysis-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
}

.main-analysis-table thead {
    background: var(--bg-primary);
}

.main-analysis-table th {
    padding: 16px 20px;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--divider-color);
}

.main-analysis-table th.col-label {
    text-align: left;
    width: 25%;
}

.main-analysis-table th.col-input {
    width: 20%;
}

.main-analysis-table th.col-current,
.main-analysis-table th.col-target,
.main-analysis-table th.col-delta {
    width: 12%;
}

.main-analysis-table th.col-action {
    width: 15%;
}

.main-analysis-table tbody tr {
    transition: background 0.2s ease;
}

.main-analysis-table tbody tr:not(:last-child) {
    border-bottom: 1px solid var(--divider-color);
}

.main-analysis-table tbody tr:hover {
    background: var(--bg-primary);
}

.main-analysis-table tbody tr.highlight-row {
    background: #FFF8E1;
}

.main-analysis-table tbody tr.highlight-row:hover {
    background: #FFF3CD;
}

.main-analysis-table td {
    padding: 20px;
    font-size: 15px;
    vertical-align: middle;
}

/* Label Cell */
.label-cell {
    text-align: left;
    font-weight: 400;
}

.label-cell i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    margin-right: 12px;
}

.label-cell strong {
    font-size: 15px;
    font-weight: 500;
}

.label-cell .badge {
    display: inline-block;
    background: var(--info-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Input Cell */
.input-cell {
    padding: 12px 20px !important;
}

.input-cell input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    font-weight: 400;
    transition: all 0.2s ease;
    background: var(--card-bg);
    color: var(--text-primary);
}

.input-cell input:hover {
    border-color: var(--text-tertiary);
}

.input-cell input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

/* Value Cell */
.value-cell {
    text-align: center;
    font-weight: 400;
    font-size: 15px;
    color: var(--text-primary);
}

.value-cell.calculated {
    background: #E8F4FD;
    font-weight: 500;
    color: var(--info-color);
}

.value-cell.target-cell {
    background: var(--bg-primary);
    font-weight: 500;
    color: var(--text-primary);
}

/* Delta Styles */
.delta-positive {
    color: var(--danger-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.delta-negative {
    color: var(--danger-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.delta-positive-reversed {
    color: var(--success-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.delta-negative-reversed {
    color: var(--danger-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.delta-neutral {
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Action Styles */
.action-increase {
    display: inline-block;
    background: #FFF3CD;
    color: #996600;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid #FFE69C;
    text-align: center;
    font-size: 13px;
}

.action-increase small {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 400;
    opacity: 0.8;
}

.action-decrease {
    display: inline-block;
    background: #E8F4FD;
    color: #0051D5;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid #B3D7FF;
    text-align: center;
    font-size: 13px;
}

.action-decrease small {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 400;
    opacity: 0.8;
}

.action-good {
    display: inline-block;
    background: #D1F4E0;
    color: #1B5E20;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid #A7F3D0;
    font-size: 13px;
}

.action-warning {
    display: inline-block;
    background: #FFE5E5;
    color: #C92A2A;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid #FFCCCC;
    font-size: 13px;
}

.info-note {
    display: inline-block;
    color: var(--text-tertiary);
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
}

/* Action Buttons */
.action-buttons {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-reset {
    padding: 12px 24px;
    background: var(--text-secondary);
    color: white;
    border: none;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reset:hover {
    background: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

/* Recommendations */
.recommendations-card {
    animation-delay: 0.2s;
}

.recommendation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.recommendation-card {
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--divider-color);
    background: var(--card-bg);
    transition: all 0.2s ease;
}

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

.recommendation-card.success {
    background: #D1F4E0;
    border-color: #A7F3D0;
}

.recommendation-card.warning {
    background: #FFF3CD;
    border-color: #FFE69C;
}

.recommendation-card.info {
    background: #E8F4FD;
    border-color: #B3D7FF;
}

.recommendation-card.full-width {
    grid-column: 1 / -1;
    text-align: center;
}

.recommendation-card > i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.recommendation-card.success > i {
    color: var(--success-color);
}

.recommendation-card.warning > i {
    color: var(--warning-color);
}

.recommendation-card.info > i {
    color: var(--info-color);
}

.recommendation-card h4 {
    font-size: 17px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-card h4 i {
    font-size: 16px;
}

.rec-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 21px;
    font-weight: 500;
    color: var(--text-primary);
}

.stat-value.positive {
    color: var(--success-color);
}

.stat-value.negative {
    color: var(--danger-color);
}

.recommendation-text {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--divider-color);
    font-size: 15px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.47059;
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px 20px;
    margin-top: 60px;
    font-size: 13px;
}

footer i {
    margin: 0 4px;
}

/* Planning Tab Styles */
.planning-card {
    animation-delay: 0.1s;
}

.planning-info {
    background: var(--bg-primary);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 15px;
    color: var(--text-secondary);
    border: 1px solid var(--divider-color);
}

.planning-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-generate {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-generate:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.quarters-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quarters-selector label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.quarters-selector select {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quarters-selector select:hover {
    border-color: var(--text-tertiary);
}

.quarters-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.planning-placeholder {
    text-align: center;
    padding: 80px 40px;
    color: var(--text-secondary);
}

.planning-placeholder i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.planning-placeholder p {
    font-size: 17px;
    line-height: 1.47059;
    max-width: 500px;
    margin: 0 auto;
}

/* Transition Table */
.transition-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
}

.transition-table thead {
    background: var(--bg-primary);
}

.transition-table th {
    padding: 16px 12px;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--divider-color);
}

.transition-table th small {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    text-transform: none;
    font-weight: 400;
}

.transition-table th.col-indicator {
    text-align: left;
    width: 20%;
}

.transition-table th.col-dap {
    background: #FFF3CD;
    font-weight: 600;
    color: var(--text-primary);
}

.transition-table th.col-tpp {
    background: #E8F4FD;
    font-weight: 600;
    color: var(--primary-color);
}

.transition-table tbody tr {
    transition: background 0.2s ease;
}

.transition-table tbody tr:not(:last-child) {
    border-bottom: 1px solid var(--divider-color);
}

.transition-table tbody tr:hover {
    background: var(--bg-primary);
}

.transition-table td {
    padding: 16px 12px;
    font-size: 15px;
    vertical-align: middle;
}

.indicator-cell {
    text-align: left;
    font-weight: 500;
}

.indicator-cell i {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    margin-right: 10px;
}

.dap-cell {
    background: #FFF9DB;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

.tpp-cell {
    background: #F0F9FF;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

.quarter-cell {
    text-align: center;
    padding: 8px;
}

.quarter-input {
    width: 100%;
    max-width: 80px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
    font-family: inherit;
    background: var(--card-bg);
    transition: all 0.2s ease;
}

.quarter-input:hover {
    border-color: var(--text-tertiary);
}

.quarter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Planning Actions */
.planning-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.btn-export,
.btn-print {
    padding: 12px 24px;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--divider-color);
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-export:hover,
.btn-print:hover {
    background: var(--bg-primary);
    border-color: var(--text-tertiary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 1100px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

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

.modal-header {
    background: var(--bg-primary);
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--divider-color);
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2 i {
    font-size: 28px;
    color: var(--primary-color);
}

.modal-close {
    color: var(--text-secondary);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--divider-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 32px;
}

.modal-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.47059;
}

.tpp-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--divider-color);
    margin-bottom: 24px;
}

.tpp-modal-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
}

.tpp-modal-table thead {
    background: var(--bg-primary);
}

.tpp-modal-table th {
    padding: 16px 12px;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--divider-color);
}

.tpp-modal-table tbody tr {
    transition: background 0.2s ease;
}

.tpp-modal-table tbody tr:not(:last-child) {
    border-bottom: 1px solid var(--divider-color);
}

.tpp-modal-table tbody tr:hover {
    background: var(--bg-primary);
}

.tpp-modal-table td {
    padding: 14px 12px;
    text-align: center;
    font-size: 15px;
}

.category-cell {
    background: var(--bg-primary);
    font-weight: 600;
    font-size: 21px;
    color: var(--primary-color);
}

.range-cell {
    font-weight: 400;
    color: var(--text-primary);
    white-space: nowrap;
}

.percent-cell {
    font-weight: 500;
    color: var(--text-primary);
}

.modal-note {
    background: #FFF3CD;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid #FFE69C;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.modal-note i {
    font-size: 20px;
    color: var(--warning-color);
    margin-top: 2px;
}

.modal-note p {
    margin: 0;
    line-height: 1.47059;
    color: var(--text-primary);
    font-size: 13px;
}

.modal-note strong {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-analysis-table th.col-label {
        width: 22%;
    }
    
    .main-analysis-table th.col-input {
        width: 18%;
    }
}

@media (max-width: 968px) {
    .table-wrapper {
        overflow-x: scroll;
    }
    
    .main-analysis-table {
        min-width: 900px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 16px;
    }

    /* Logo responsive */
    .header-logo-top {
        margin-bottom: 20px;
    }

    .logo-starfish {
        height: 90px;
    }

    .title-with-badge {
        gap: 16px;
    }

    .logo-certified {
        height: 55px;
    }

    header {
        margin-bottom: 40px;
    }

    header h1 {
        font-size: 40px;
    }

    .subtitle {
        font-size: 19px;
        margin-top: 10px;
    }

    .card {
        padding: 32px 24px;
    }

    .card h2 {
        font-size: 24px;
    }

    .info-banner {
        flex-direction: column;
        text-align: center;
    }

    .info-banner .separator {
        display: none;
    }

    /* Tabs responsive */
    .tab-button {
        font-size: 14px;
        padding: 10px 16px;
    }

    .tab-button i {
        font-size: 14px;
    }

    /* Planning responsive */
    .planning-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .quarters-selector {
        justify-content: space-between;
    }

    .transition-table {
        font-size: 13px;
    }

    .transition-table th,
    .transition-table td {
        padding: 12px 8px;
    }

    .quarter-input {
        max-width: 70px;
        font-size: 13px;
    }

    .planning-actions {
        flex-direction: column;
    }

    .btn-export,
    .btn-print {
        width: 100%;
    }

    .recommendation-cards {
        grid-template-columns: 1fr;
    }

    .rec-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 24px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .tpp-modal-table {
        font-size: 13px;
    }
    
    .tpp-modal-table th,
    .tpp-modal-table td {
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    /* Logo mobile */
    .header-logo-top {
        margin-bottom: 16px;
    }

    .logo-starfish {
        height: 70px;
    }

    .title-with-badge {
        flex-direction: column;
        gap: 12px;
    }

    .logo-certified {
        height: 50px;
    }

    header h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 17px;
    }

    /* Tabs mobile */
    .tabs-nav {
        flex-direction: column;
        gap: 4px;
    }

    .tab-button {
        justify-content: flex-start;
        padding: 12px 20px;
    }

    /* Planning mobile */
    .planning-placeholder {
        padding: 60px 20px;
    }

    .planning-placeholder i {
        font-size: 36px;
    }

    .planning-placeholder p {
        font-size: 15px;
    }

    .table-wrapper {
        overflow-x: scroll;
    }

    .transition-table {
        min-width: 800px;
    }

    .card {
        padding: 24px 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .modal-content {
        margin: 10% auto;
    }
    
    .modal-header h2 {
        font-size: 21px;
    }
    
    .tpp-table-wrapper {
        overflow-x: scroll;
    }
    
    .tpp-modal-table {
        min-width: 700px;
    }
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}
