/* SleepScape Project Dashboard Styles */

:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --border: #2d3748;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

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

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Navigation Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

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

.tab.active {
    color: var(--text-primary);
    background: var(--accent);
}

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

.tab-content {
    display: none;
}

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

/* Cards */
.card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-secondary);
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.summary-item {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.summary-item .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.summary-item .value {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.status-planning {
    color: var(--warning);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
}

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

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Phases */
.phase {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

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

.phase-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.phase-status {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: var(--bg-secondary);
}

.status-current {
    color: var(--warning);
}

.status-upcoming {
    color: var(--text-muted);
}

.status-done {
    color: var(--success);
}

.phase-timeline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Checklist */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* Design Specs */
.design-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.spec-item {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 8px;
}

.spec-item h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.spec-item p {
    margin: 0;
    color: var(--text-primary);
}

/* Color Palette */
.color-palette {
    display: flex;
    gap: 0.5rem;
}

.color {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--border);
    cursor: pointer;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.category {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease;
}

.category:hover {
    transform: translateY(-2px);
}

.category-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.category-count {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mockup Grid */
.mockup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.mockup-placeholder {
    aspect-ratio: 9/16;
    background: var(--bg-card);
    border-radius: 12px;
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.placeholder-text {
    color: var(--text-muted);
    font-style: italic;
}

/* Progress Bar */
.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
}

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

.progress-text {
    font-weight: 600;
    color: var(--accent-light);
    min-width: 100px;
}

/* Activity Log */
.activity-log {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: 8px;
}

.activity-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    min-width: 100px;
}

.activity-text {
    color: var(--text-secondary);
}

/* Milestones */
.milestones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.milestone {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
}

.milestone-icon {
    font-size: 1.25rem;
    width: 30px;
    text-align: center;
}

.milestone-icon.pending {
    color: var(--text-muted);
}

.milestone-icon.done {
    color: var(--success);
}

.milestone-content {
    flex: 1;
}

.milestone-title {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
}

.milestone-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Lists in Notes */
.decisions-list li,
.questions-list li,
.resources-list li {
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.decisions-list li::before,
.questions-list li::before,
.resources-list li::before {
    display: none;
}

.resources-list a {
    color: var(--accent-light);
    text-decoration: none;
}

.resources-list a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

/* Phone Mockup */
.phone-mockup-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.phone-mockup-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.phone-frame {
    width: 220px;
    background: #1a1a1a;
    border-radius: 32px;
    padding: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                inset 0 0 0 2px #333;
    position: relative;
    flex-shrink: 0;
}

.phone-notch {
    width: 80px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    background: var(--bg-primary);
    border-radius: 24px;
    height: 420px;
    overflow: hidden;
    position: relative;
}

.phone-home-bar {
    width: 100px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

/* App UI inside phone */
.app-header {
    padding: 30px 12px 8px;
}

.app-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.app-subtitle {
    font-size: 9px;
    color: var(--text-secondary);
    margin: 2px 0 0;
}

.app-mix-section {
    padding: 0 16px 12px;
}

.app-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
}

.app-mixer-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.app-mixer-item {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 10px;
    min-width: 140px;
    flex-shrink: 0;
}

.mixer-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.mixer-icon {
    font-size: 14px;
}

.mixer-name {
    flex: 1;
    font-size: 11px;
    color: #fff;
    font-weight: 500;
}

.mixer-close {
    font-size: 10px;
    color: var(--text-muted);
    cursor: pointer;
}

.mixer-slider {
    padding: 4px 0;
}

.slider-track {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    position: relative;
}

.slider-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.slider-thumb {
    width: 12px;
    height: 12px;
    background: var(--accent-light);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.app-categories {
    display: flex;
    gap: 6px;
    padding: 8px 16px;
    overflow-x: auto;
}

.app-category {
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.app-category.active {
    background: var(--accent);
    color: #fff;
}

.app-sounds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px 16px;
}

.app-sound-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    border: 2px solid transparent;
    position: relative;
}

.app-sound-card.active {
    border-color: var(--accent);
    background: var(--bg-card);
}

.app-sound-card.premium .pro-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 7px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
}

.sound-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 6px;
}

.sound-name {
    display: block;
    font-size: 10px;
    color: var(--text-secondary);
}

.app-sound-card.active .sound-name {
    color: #fff;
}

.app-player-controls {
    position: absolute;
    bottom: 55px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
}

.player-count {
    font-size: 11px;
    color: var(--text-secondary);
}

.player-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.clear-btn {
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
}

.play-btn {
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

/* Tab Bar */
.app-tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: var(--bg-secondary);
    padding: 8px 0 20px;
    border-top: 1px solid var(--border);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    opacity: 0.5;
}

.tab-item.active {
    opacity: 1;
}

.tab-icon {
    font-size: 18px;
}

.tab-label {
    font-size: 9px;
    color: var(--text-secondary);
}

.tab-item.active .tab-label {
    color: var(--accent);
}

/* Player Controls Updated */
.player-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-actions {
    display: flex;
    gap: 10px;
    margin-top: 2px;
}

.player-timer {
    font-size: 9px;
    color: var(--accent-light);
}

.player-save {
    font-size: 9px;
    color: var(--text-muted);
}

/* Compact Sound Grid */
.app-sounds-grid.compact {
    padding: 8px 16px;
}

/* Saved Mixes Screen */
.saved-mixes-list {
    padding: 8px 16px;
    flex: 1;
}

.saved-mix-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.mix-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mix-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.mix-card-date {
    font-size: 9px;
    color: var(--text-muted);
}

.mix-card-sounds {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.mix-sound-badge {
    background: var(--bg-card);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 9px;
    color: var(--text-secondary);
}

.mix-card-play {
    background: var(--accent);
    color: #fff;
    padding: 6px;
    border-radius: 6px;
    font-size: 10px;
    text-align: center;
    font-weight: 600;
}

/* Settings Screen */
.settings-content {
    padding: 0 12px;
    flex: 1;
}

.premium-banner {
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.premium-banner .premium-icon {
    font-size: 20px;
}

.premium-banner .premium-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.premium-banner .premium-title {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.premium-banner .premium-sub {
    font-size: 8px;
    color: var(--text-secondary);
}

.premium-banner .premium-price {
    background: var(--accent);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
}

.settings-section {
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.settings-label {
    display: block;
    font-size: 9px;
    color: var(--text-muted);
    padding: 8px 10px 4px;
    letter-spacing: 0.5px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    color: #fff;
}

.settings-item:last-child {
    border-bottom: none;
}

.toggle {
    width: 32px;
    height: 18px;
    background: var(--border);
    border-radius: 9px;
    position: relative;
}

.toggle::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.2s;
}

.toggle.on {
    background: var(--accent);
}

.toggle.on::after {
    left: 16px;
}

/* Modal Mockups */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.modal-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    width: 100%;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 12px;
}

/* Timer Options */
.timer-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}

.timer-option {
    background: var(--bg-card);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 9px;
    color: var(--text-secondary);
    border: 2px solid transparent;
}

.timer-option.active {
    border-color: var(--accent);
    color: var(--accent);
}

.modal-cancel {
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    padding: 8px;
}

/* Save Mix Modal */
.modal-input {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.input-text {
    color: #fff;
    font-size: 12px;
}

.input-cursor {
    color: var(--accent);
    font-size: 12px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.modal-buttons {
    display: flex;
    gap: 8px;
}

.modal-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
}

.modal-btn.cancel {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.modal-btn.save {
    background: var(--accent);
    color: #fff;
}

/* App Icon Preview */
.app-icon-preview {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}

.app-icon-large {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    position: relative;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    overflow: hidden;
}

.moon-shape {
    position: absolute;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.moon-shape::after {
    content: '';
    position: absolute;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    border-radius: 50%;
    top: -10px;
    left: 20px;
}

.app-icon-info p {
    margin: 4px 0;
    color: var(--text-secondary);
}

.app-icon-info p:first-child {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.icon-specs {
    font-size: 0.85rem;
    color: var(--text-muted) !important;
}

/* Test App / QR Code Section */
.test-app-card {
    border: 1px solid var(--accent);
}

.test-app-content {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.qr-section {
    text-align: center;
}

.expo-qr {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    background: white;
    padding: 8px;
}

.qr-label {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.test-instructions {
    flex: 1;
    min-width: 200px;
}

.test-instructions ol {
    padding-left: 20px;
    margin: 12px 0;
}

.test-instructions li {
    padding: 4px 0;
    padding-left: 8px;
}

.test-instructions li::before {
    display: none;
}

.test-note {
    font-size: 0.85rem;
    color: var(--warning);
    margin-top: 12px;
}

/* Issues Tracker */
.issue-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: var(--accent-light);
}

.issues-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-style: italic;
}

.issues-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.issue-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid var(--border);
}

.issue-item.status-open {
    border-left-color: var(--warning);
}

.issue-item.status-in-progress {
    border-left-color: var(--accent);
}

.issue-item.status-done {
    border-left-color: var(--success);
}

.issue-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
}

.issue-subject {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.issue-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.issue-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.issue-status {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.issue-status.open {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.issue-status.in-progress {
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent-light);
}

.issue-status.done {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.issue-notes {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.issue-claude {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.issue-claude-label {
    font-size: 0.75rem;
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.issue-claude-notes {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.issue-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.issue-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.issue-btn:hover {
    opacity: 0.8;
}

.issue-btn.delete {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

/* Inline Edit Form */
.edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edit-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edit-form label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.edit-form input,
.edit-form select,
.edit-form textarea {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.edit-form textarea {
    resize: vertical;
    min-height: 60px;
}

.edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-save, .btn-cancel, .btn-edit, .btn-delete {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-save {
    background: var(--accent);
    color: white;
}

.btn-cancel {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.btn-edit {
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent-light);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.btn-save:hover, .btn-cancel:hover, .btn-edit:hover, .btn-delete:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 600px) {
    .header {
        padding: 2rem 1rem;
    }

    .logo h1 {
        font-size: 1.75rem;
    }

    .tabs {
        padding: 0.75rem;
    }

    .tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .content {
        padding: 1rem;
    }

    .card {
        padding: 1rem;
    }

    .phone-frame {
        width: 200px;
    }

    .phone-mockup-row {
        gap: 12px;
    }

    .phone-screen {
        height: 380px;
    }
}
