/* Main CSS for ASK DEGEN Dashboard */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: url('https://jeetsvsdegens.com/newbg.jpg');
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    padding-top: 80px; /* Space for fixed header */
}

/* Fixed Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    padding: 15px 0;
}

.header-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: "Lacquer", system-ui;
    font-size: 2rem;
    font-weight: 400;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 3s ease infinite;
    text-decoration: none;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.nav-link {
    color: #b0b7ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

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

/* Common Sections */
.section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-family: "Lacquer", system-ui;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 400;
}

.page-title {
    font-family: "Lacquer", system-ui;
    font-size: 2.5rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 3s ease infinite;
}

.page-description {
    text-align: center;
    color: #b0b7ff;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Market Overview Bar */
.market-overview {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.market-title {
    font-family: "Lacquer", system-ui;
    font-size: 1.4rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.market-sentiment {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.sentiment-indicator {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sentiment-bullish { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.sentiment-bearish { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.sentiment-neutral { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

.crypto-prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.crypto-price-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.crypto-price-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.crypto-symbol {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 8px;
    display: inline;
    float: left;
    padding: 5px 20px 0px 0px;
}

.crypto-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 5px;
    display: inline;
    float: left;
}

.crypto-change {
    font-size: 0.9rem;
    font-weight: 600;
    display: inline;
    float: left; 
    padding: 5px 0px 0px 20px;
}

.crypto-change.positive { color: #10b981; }
.crypto-change.negative { color: #ef4444; }

/* Button Styles */
.btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: "Lacquer", system-ui;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #b0b7ff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #ffffff;
}

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

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #e1e7ff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

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

/* Cards and Grids */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
    font-family: "Lacquer", system-ui;
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 400;
}

.card-content {
    line-height: 1.7;
    color: #e1e7ff;
    font-size: 0.95rem;
}

.card-content h3 {
    color: #667eea;
    margin: 15px 0 10px 0;
    font-size: 1.1rem;
}

.card-content p {
    margin-bottom: 15px;
}

.card-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.card-content li {
    margin-bottom: 8px;
}

/* Resource Cards */
.resource-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    cursor: pointer;
}

.resource-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.resource-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.resource-description {
    color: #b0b7ff;
    line-height: 1.5;
    font-size: 0.9rem;
}

.resource-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 10px;
    display: inline-block;
    font-weight: 600;
}

.resource-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Dictionary Terms */
.term-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.term-item:hover {
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.term-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: #667eea;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.term-definition {
    color: #e1e7ff;
    line-height: 1.6;
    font-size: 0.95rem;
}

.term-example {
    color: #b0b7ff;
    font-style: italic;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Chart Analysis */
.chart-upload {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(102, 126, 234, 0.5);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.chart-upload:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.chart-upload.dragover {
    border-color: #764ba2;
    background: rgba(118, 75, 162, 0.1);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #667eea;
}

.upload-text {
    font-size: 1.1rem;
    color: #e1e7ff;
    margin-bottom: 10px;
}

.upload-hint {
    color: #b0b7ff;
    font-size: 0.9rem;
}

.chart-preview {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
}

.analysis-result {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.analysis-content {
    line-height: 1.7;
    color: #e1e7ff;
    font-size: 1.05rem;
}

/* Pattern Diagrams */
.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.pattern-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.pattern-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.pattern-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #667eea;
    margin-bottom: 15px;
}

.pattern-diagram {
    width: 100%;
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b7ff;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pattern-description {
    color: #e1e7ff;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Loading and Error States */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    margin: 20px 0;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
}

.error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
    color: #ef4444;
    padding: 20px;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-weight: 600;
    display: none;
}

.success-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    color: #10b981;
    padding: 20px;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
}

/* Search and Filter */
.search-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-input::placeholder {
    color: #b0b7ff;
}

/* Footer */
.powered-by {
    text-align: center;
    margin-top: 40px;
    color: #b0b7ff;
    font-weight: 500;
}

.powered-by a {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.powered-by a:hover {
    color: #764ba2;
    text-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pattern-grid {
        grid-template-columns: 1fr;
    }
    
    body {
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }
    
    .page-container {
        padding: 15px;
    }
    
    .section {
        padding: 20px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

