/* FixMy480 Dashboard Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Lora:wght@400;500;600;700&display=swap');

:root {
    --bg: #0b0b10;
    --bg-surface: #111119;
    --bg-elevated: #18181f;
    --border: #222230;
    --text: #ede8e0;
    --text-muted: #7a7590;
    --text-subtle: #3e3c50;
    --gold: #e8a020;
    --gold-bright: #f5b535;
    --gold-dim: #a06e10;
    --green: #3dba6e;
    --warning: #fb923c;
    --red: #e05555;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', Georgia, serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* App Nav */
.app-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 11, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-nav .nav-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.app-nav .nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.app-nav .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.app-nav .nav-links a:hover,
.app-nav .nav-links a.active {
    color: var(--gold);
}

/* Profile Menu */
.profile-menu {
    position: relative;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    color: #0b0b10;
    border: none;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.profile-avatar:hover {
    transform: scale(1.1);
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 180px;
    overflow: hidden;
    z-index: 200;
}

.profile-dropdown.open {
    display: block;
}

.profile-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.profile-dropdown a:hover {
    background: var(--bg-elevated);
}

.profile-dropdown a.danger {
    color: var(--red);
    border-top: 1px solid var(--border);
}

.app {
    padding-top: 70px;
}

/* Header */
.header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.tagline {
    color: var(--text-muted);
    font-size: 14px;
}

.header-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-top: 5px;
}

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

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

.progress-bar {
    background: var(--border);
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    transition: width 0.5s ease;
}

/* Sections */
section {
    margin-bottom: 60px;
}

section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Score Cards */
.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.score-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.score-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.bureau-logo {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.score-display {
    margin-bottom: 20px;
}

.current-score {
    font-size: 64px;
    font-weight: 900;
    display: block;
}

.score-trend {
    font-size: 18px;
    font-weight: 600;
    margin-top: 5px;
}

.score-trend.positive {
    color: var(--green);
}

.score-trend.negative {
    color: var(--red);
}

.score-trend.neutral {
    color: var(--text-muted);
}

.score-history {
    margin-top: 20px;
    opacity: 0.7;
}

/* Next Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.step-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateX(5px);
    border-color: var(--gold);
}

.step-number {
    background: var(--gold);
    color: #0b0b10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.step-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 14px;
}

/* Disputes Section */
.disputes-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.summary-number {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: var(--gold);
}

.summary-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 5px;
}

.dispute-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.disputes-list {
    display: grid;
    gap: 20px;
}

.dispute-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.dispute-card.sent {
    border-color: var(--warning);
}

.dispute-card.resolved {
    border-color: var(--green);
}

.dispute-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dispute-header h4 {
    font-size: 18px;
    font-weight: 600;
}

.dispute-status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--border);
    color: var(--text-muted);
    text-transform: uppercase;
}

.dispute-card.sent .dispute-status {
    background: rgba(251, 146, 60, 0.2);
    color: var(--warning);
}

.dispute-card.resolved .dispute-status {
    background: rgba(61, 186, 110, 0.2);
    color: var(--green);
}

.dispute-details p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.dispute-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Letters */
.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.letter-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
}

.letter-card h3 {
    margin-bottom: 15px;
}

.letter-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 5px;
}

.letter-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* Timeline */
.timeline {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
}

.timeline-event {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.timeline-event:last-child {
    border-bottom: none;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 14px;
    min-width: 100px;
}

.timeline-content {
    flex: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gold);
    color: #0b0b10;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-family: var(--font-body);
}

.btn:hover {
    background: var(--gold-bright);
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--gold);
    color: #0b0b10;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: transparent;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-family: var(--font-body);
    transition: border-color 0.2s ease;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    position: relative;
}

.modal-large {
    max-width: 800px;
}

.modal-content h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s ease;
    padding: 0;
    line-height: 1;
}

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

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gold);
    color: #0b0b10;
    padding: 16px 24px;
    border-radius: 3px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    z-index: 2000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Upload Section */
.upload-section {
    background: var(--bg-surface);
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.upload-section.dragover {
    border-color: var(--gold);
    background: rgba(232, 160, 32, 0.05);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
    color: var(--gold);
}

.upload-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.upload-button {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.upload-button input[type="file"] {
    position: absolute;
    left: -9999px;
}

/* Bureau Tracker */
.bureau-tracker {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.bureau-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.bureau-badge.imported {
    background: rgba(61, 186, 110, 0.15);
    color: var(--green);
    border-color: var(--green);
}

.upload-status {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-elevated);
    border-radius: 8px;
    display: none;
}

.upload-status.success {
    border-left: 4px solid var(--green);
}

.upload-status.error {
    border-left: 4px solid var(--red);
}

/* Getting Started / Action Cards */
.getting-started {
    margin-bottom: 40px;
}

.getting-started h2 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.getting-started h2:hover {
    color: var(--text);
}

.toggle-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.action-card h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.action-card.completed {
    opacity: 0.6;
    border-color: var(--green);
}

.action-card.completed h3::after {
    content: '\2713';
    color: var(--green);
    margin-left: auto;
    font-size: 20px;
}

/* Quick Start */
.quick-start {
    background: var(--bg-elevated);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.quick-start h2 {
    color: var(--gold);
    margin-bottom: 20px;
}

.quick-start-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.quick-option {
    text-align: center;
    padding: 20px;
    background: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-option:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.quick-option-icon {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--gold);
}

/* Parsing Modal */
.parsing-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.parsing-content {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    position: relative;
}

.parsing-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

.parsed-results {
    text-align: left;
    margin-top: 20px;
}

.parsed-item {
    background: var(--bg-elevated);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.import-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .app-nav {
        padding: 0 20px;
    }

    .app-nav .nav-links {
        gap: 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-stats {
        width: 100%;
        justify-content: space-around;
    }

    .score-grid {
        grid-template-columns: 1fr;
    }

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

    .modal-content {
        padding: 30px 20px;
    }
}
