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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Banner */
.header-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ecf0f1;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    color: #ecf0f1;
    transition: color 0.3s ease;
}

.logo a:hover .logo-text {
    color: #3498db;
}

/* Navigation */
.navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 40px;
}

.nav-tiles {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-tile {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-tile:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-tile.active {
    background: #3498db;
    border-color: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.nav-tile a {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-tile.active a {
    color: #fff;
    font-weight: 600;
}

/* Auth Section */
.auth-section {
    display: flex;
    align-items: center;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-login {
    background: transparent;
    color: #ecf0f1;
    border-color: #ecf0f1;
}

.btn-login:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-register {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.btn-register:hover {
    background: #c0392b;
    border-color: #c0392b;
    transform: translateY(-1px);
}

.btn-profile {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
}

.btn-profile:hover {
    background: #229954;
    border-color: #229954;
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

/* Footer Banner */
.footer-banner {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: #bdc3c7;
    padding: 20px 0;
    margin-top: auto;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #3498db;
}

.footer-separator {
    color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    .logo {
        margin-bottom: 15px;
    }

    .navigation {
        margin: 0 0 15px 0;
    }

    .nav-tiles {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav-tile a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .auth-buttons {
        gap: 8px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .main-content {
        padding: 20px 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .nav-tiles {
        flex-direction: column;
        width: 100%;
    }

    .nav-tile {
        width: 100%;
    }

    .nav-tile a {
        text-align: center;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        text-align: center;
        width: 100%;
    }
}

/* Page-specific content styling */
.page-title {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.page-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.content-section {
    margin-bottom: 25px;
}

.content-section h2 {
    color: #34495e;
    margin-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 5px;
}

/* Quick Access Cards */
.quick-access-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #ecf0f1;
}

.quick-access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.quick-access-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.quick-access-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-primary {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
    padding: 10px 20px;
    display: inline-block;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
}

.btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-1px);
}

/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.stat-card h4 {
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

/* Alternative stat card colors */
.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.stat-card:nth-child(2):hover {
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}

.stat-card:nth-child(3):hover {
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

.stat-card:nth-child(4):hover {
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
}

/* Hits Page Styles */
.hits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.hit-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #ecf0f1;
}

.hit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.hit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.hit-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.2rem;
}

.profit-badge {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.hit-details {
    margin-bottom: 20px;
}

.price-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.buy-price {
    color: #e74c3c;
    font-weight: 500;
}

.sell-price {
    color: #27ae60;
    font-weight: 500;
}

.hit-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.roi {
    font-weight: 600;
    color: #3498db;
}

.hit-actions {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    background: #95a5a6;
    color: #fff;
    border-color: #95a5a6;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #95a5a6;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #7f8c8d;
    border-color: #7f8c8d;
    transform: translateY(-1px);
}

/* Filter Section */
.filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
    margin-top: 15px;
}

.filter-group {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 15px;
    vertical-align: top;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    padding: 8px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 150px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

@media (max-width: 768px) {
    .hits-grid {
        grid-template-columns: 1fr;
    }

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

    .filter-group {
        display: block;
        margin-right: 0;
        width: 100%;
    }

    .form-control {
        width: 100%;
    }

    .price-info {
        flex-direction: column;
        gap: 5px;
    }

    .hit-stats {
        flex-direction: column;
        gap: 5px;
    }
}

/* Overview Page Styles */
.chart-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #ecf0f1;
    margin-top: 15px;
}

.chart-placeholder {
    text-align: center;
    color: #7f8c8d;
}

.mock-chart {
    margin-top: 20px;
}

.chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: end;
    height: 200px;
    margin-bottom: 10px;
}

.chart-bar {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    width: 30px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: scaleY(1.1);
}

.chart-labels {
    display: flex;
    justify-content: space-around;
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Activity List */
.activity-list {
    margin-top: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.activity-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.activity-icon.success {
    background: #27ae60;
    color: #fff;
}

.activity-icon.info {
    background: #3498db;
    color: #fff;
}

.activity-icon.warning {
    background: #f39c12;
    color: #fff;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1rem;
}

.activity-content p {
    margin: 0 0 5px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.activity-time {
    font-size: 0.8rem;
    color: #95a5a6;
}

/* Category Stats */
.category-stats {
    margin-top: 15px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.category-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.category-name {
    width: 150px;
    font-weight: 500;
    color: #2c3e50;
    flex-shrink: 0;
}

.category-bar {
    flex: 1;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    margin: 0 15px;
    overflow: hidden;
}

.category-progress {
    height: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.category-value {
    font-weight: bold;
    color: #27ae60;
    min-width: 80px;
    text-align: right;
}

@media (max-width: 768px) {
    .chart-bars {
        height: 150px;
    }

    .chart-bar {
        width: 20px;
    }

    .activity-item {
        flex-direction: column;
        text-align: center;
    }

    .activity-icon {
        margin: 0 auto 10px auto;
    }

    .category-item {
        flex-direction: column;
        text-align: center;
    }

    .category-name {
        width: 100%;
        margin-bottom: 10px;
    }

    .category-bar {
        margin: 10px 0;
    }

    .category-value {
        min-width: auto;
        text-align: center;
    }
}

/* Scanns Page Styles */
.scan-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
    margin-top: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

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

.btn-large {
    padding: 12px 24px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #e74c3c;
    cursor: pointer;
}

.btn-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
    transform: translateY(-1px);
}

/* Scan List */
.scan-list {
    margin-top: 15px;
}

.scan-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.scan-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.scan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.scan-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.scan-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.scan-status.running {
    background: #3498db;
    color: #fff;
}

.scan-status.completed {
    background: #27ae60;
    color: #fff;
}

.scan-status.paused {
    background: #f39c12;
    color: #fff;
}

.scan-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 20px;
}

.scan-info, .scan-results {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.scan-info span, .scan-results span {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.hits-found, .avg-profit {
    font-weight: 600;
    color: #27ae60;
}

.scan-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    transition: width 0.3s ease;
}

.progress-fill.completed {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.progress-fill.paused {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

/* Settings Page Styles */
.settings-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.settings-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.settings-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
    overflow: hidden;
}

.settings-nav li {
    border-bottom: 1px solid #ecf0f1;
}

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

.settings-nav-link {
    display: block;
    padding: 15px 20px;
    color: #7f8c8d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.settings-nav-link:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.settings-nav-link.active {
    background: #3498db;
    color: #fff;
}

.settings-content {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
    padding: 30px;
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

.settings-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.settings-form {
    max-width: 600px;
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.api-status {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.status-indicator {
    font-weight: 500;
}

.status-indicator.connected {
    color: #27ae60;
}

.status-indicator.disconnected {
    color: #e74c3c;
}

.danger-zone {
    margin-top: 30px;
    padding: 20px;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
}

.danger-zone h4 {
    color: #721c24;
    margin-bottom: 10px;
}

.danger-zone p {
    color: #721c24;
    margin-bottom: 15px;
}

.settings-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-group {
        min-width: auto;
    }

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

    .scan-details {
        flex-direction: column;
        gap: 10px;
    }

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

    .settings-container {
        flex-direction: column;
        gap: 20px;
    }

    .settings-sidebar {
        width: 100%;
    }

    .settings-nav ul {
        display: flex;
        overflow-x: auto;
    }

    .settings-nav li {
        border-bottom: none;
        border-right: 1px solid #ecf0f1;
        flex-shrink: 0;
    }

    .settings-nav li:last-child {
        border-right: none;
    }

    .settings-nav-link {
        white-space: nowrap;
    }
}
