/* Matt's Command Center - Custom Styles */

:root {
    --bg-dark: #0a1628;
    --bg-light: #1a2744;
    --cyan: #00d4ff;
    --cyan-dark: #00a8cc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
    background-attachment: fixed;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
}

/* Glassmorphism Components */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-sidebar {
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.95) 0%, rgba(26, 39, 68, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
}

.glass-header {
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-badge {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.glass-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-stat:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

/* Tab Navigation */
.tab-btn {
    color: #94a3b8;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--cyan);
    border-bottom-color: var(--cyan);
    background: rgba(0, 212, 255, 0.1);
}

/* Tab Content */
.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

/* Collapsible Sections */
.collapsible-header {
    cursor: pointer;
    transition: all 0.3s ease;
}

.collapsible-header:hover {
    background: rgba(0, 212, 255, 0.1);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.collapsible-content.open {
    max-height: 2000px;
    padding-top: 1rem;
}

.collapsible-icon {
    transition: transform 0.3s ease;
}

.collapsible-header.open .collapsible-icon {
    transform: rotate(90deg);
}

/* Phase Accordion */
.phase-header {
    cursor: pointer;
}

.phase-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.phase-content.open {
    max-height: 500px;
}

.phase-header.open .phase-icon {
    transform: rotate(90deg);
}

/* Custom Checkbox */
.phase-checkbox,
.daily-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #4a5568;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.phase-checkbox:checked,
.daily-checkbox:checked {
    background: var(--cyan);
    border-color: var(--cyan);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.phase-checkbox:hover,
.daily-checkbox:hover {
    border-color: var(--cyan);
}

/* Strikethrough for completed items */
.phase-item input:checked + span,
.daily-item input:checked + span {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Link Input Fields */
.link-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: #e2e8f0;
    width: 100%;
    transition: all 0.3s ease;
}

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

.link-input::placeholder {
    color: #64748b;
}

.link-display {
    color: var(--cyan);
    text-decoration: none;
    word-break: break-all;
}

.link-display:hover {
    text-decoration: underline;
}

/* Copy Button */
.copy-btn {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
    color: #000;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Number Input Styling */
.stat-input::-webkit-outer-spin-button,
.stat-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stat-input[type=number] {
    -moz-appearance: textfield;
}

.number-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 8px 12px;
    color: #e2e8f0;
    width: 80px;
    text-align: center;
}

.number-input:focus {
    outline: none;
    border-color: var(--cyan);
}

/* Summary Card */
.summary-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 168, 204, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
}

/* Prompt Box */
.prompt-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: #94a3b8;
}

/* Reset Button */
.reset-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Weekly Goals */
.weekly-goal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .glass-sidebar {
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 768px) {
    .tab-btn {
        padding: 12px 12px;
        font-size: 12px;
    }
    
    .summary-card {
        padding: 16px;
    }
    
    .prompt-box {
        font-size: 12px;
        padding: 12px;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.4s ease;
}

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

/* Focus States */
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-header h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

.section-header i {
    color: var(--cyan);
}
