:root {
    --electric-blue: #007BFF;
    --white: #FFFFFF;
    --charcoal-gray: #1B1B1B;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #333333;
    --success-green: #28a745;
    --warning-orange: #ffc107;
    --error-red: #dc3545;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--charcoal-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--charcoal-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--electric-blue);
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 50px;
    background: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: var(--medium-gray);
    transform: translateY(-2px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    color: var(--charcoal-gray);
}

.btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--electric-blue);
    border: 2px solid var(--electric-blue);
}

.btn-outline:hover {
    background-color: rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-danger {
    background-color: var(--error-red);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

/* Input Section */
.input-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--charcoal-gray);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.input-card {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--medium-gray);
    transition: transform 0.3s ease;
}

.input-card:hover {
    transform: translateY(-5px);
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--charcoal-gray);
    font-size: 1.1rem;
}

.input-field {
    width: 100%;
    padding: 18px;
    border: 2px solid var(--medium-gray);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.input-field:focus {
    outline: none;
    border-color: var(--electric-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

textarea.input-field {
    resize: vertical;
    min-height: 150px;
}

.analyze-btn-container {
    text-align: center;
    margin-top: 40px;
}

/* Login Prompt */
.login-prompt {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    animation: slideDown 0.5s ease;
}

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

.login-prompt-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-prompt-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.login-prompt-content h3 {
    color: var(--charcoal-gray);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.login-prompt-content p {
    color: var(--dark-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.login-prompt-content .btn {
    margin-top: 10px;
}

/* Results Section */
.results-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    display: none;
}

.results-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease;
}

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

.score-container {
    text-align: center;
    margin-bottom: 50px;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, rgba(255,255,255,0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.score-good {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.score-medium {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.score-poor {
    background: linear-gradient(135deg, #dc3545 0%, #e91e63 100%);
}

.score-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--charcoal-gray);
    margin-top: 10px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.result-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.result-card:hover::before {
    transform: scaleY(1);
}

.result-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.result-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--electric-blue);
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-card ul {
    list-style-type: none;
}

.result-card li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.8;
}

.result-card li:before {
    content: "✓";
    color: var(--success-green);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Login Section */
.login-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--medium-gray);
}

.login-card p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--electric-blue);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left-color: var(--success-green);
}

.toast.error {
    border-left-color: var(--error-red);
}

.toast.warning {
    border-left-color: var(--warning-orange);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--white);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-question {
    font-size: 1.3rem;
    color: var(--electric-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.faq-answer {
    color: var(--dark-gray);
    line-height: 1.8;
    font-size: 1rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1B1B1B 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    margin-bottom: 20px;
    max-width: 600px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer-links a:hover {
    color: var(--electric-blue);
    opacity: 1;
}

.footer-copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Loading Animation */
.loading {
    display: none;
    text-align: center;
    margin: 40px 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(0, 123, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--electric-blue);
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-weight: 500;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

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

/* Metrics Dashboard */
.metrics-dashboard {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid var(--medium-gray);
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal-gray);
    margin-bottom: 25px;
    text-align: center;
}

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

.metric-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.metric-label {
    font-weight: 600;
    color: var(--charcoal-gray);
    font-size: 0.95rem;
}

.metric-score {
    font-weight: 700;
    font-size: 1.3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Content Metrics */
.content-metrics {
    margin: 40px 0;
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    border: 1px solid var(--medium-gray);
}

.metrics-inline {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: center;
}

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

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--electric-blue);
    margin-bottom: 5px;
}

.metric-desc {
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-weight: 500;
}

/* Keywords Section */
.keywords-section {
    margin: 40px 0;
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    border: 1px solid var(--medium-gray);
}

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

.keyword-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.keyword-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.keyword-text {
    font-weight: 700;
    font-size: 1.1rem;
}

.keyword-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.9;
}

.keyword-density {
    font-weight: 600;
}

.keyword-placement {
    font-style: italic;
}

/* Technical Checklist */
.technical-checklist {
    margin: 40px 0;
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    border: 1px solid var(--medium-gray);
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 10px;
    border-left: 4px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.checklist-item.pass {
    border-left-color: var(--success-green);
    background: rgba(40, 167, 69, 0.1);
}

.checklist-item.fail {
    border-left-color: var(--error-red);
    background: rgba(220, 53, 69, 0.1);
}

.checklist-item.warning {
    border-left-color: var(--warning-orange);
    background: rgba(255, 193, 7, 0.1);
}

.checklist-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.checklist-content {
    flex: 1;
}

.checklist-item-name {
    font-weight: 600;
    color: var(--charcoal-gray);
    margin-bottom: 5px;
}

.checklist-recommendation {
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-style: italic;
}

/* Priority Badges */
.priority-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.priority-high {
    background: var(--error-red);
    color: var(--white);
}

.priority-medium {
    background: var(--warning-orange);
    color: var(--white);
}

.priority-low {
    background: var(--success-green);
    color: var(--white);
}

/* Category Badges */
.category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    background: var(--electric-blue);
    color: var(--white);
}

/* Type Badges */
.type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    background: rgba(102, 126, 234, 0.2);
    color: var(--electric-blue);
}

/* History Section */
.history-section {
    padding: 80px 0;
    background-color: var(--white);
    display: none;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.history-item {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
    cursor: pointer;
}

.history-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--electric-blue);
}

.history-item h4 {
    color: var(--electric-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.history-item p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.history-score {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .input-card, .login-card {
        padding: 30px 20px;
    }

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

    .score-circle {
        width: 150px;
        height: 150px;
        font-size: 2.5rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .export-buttons {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .export-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .results-card {
        padding: 30px 20px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .keywords-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 12px 24px;
    }

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

    .auth-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .input-section, .results-section, .dashboard-section, .login-section, .faq-section {
        padding: 40px 0;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
        font-size: 2rem;
    }
    
    .metrics-dashboard, .content-metrics, .keywords-section, .technical-checklist {
        padding: 20px 15px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .history-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .history-score {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0;
    }
    
    .history-actions {
        align-self: flex-end;
    }
    
    .metrics-inline {
        flex-direction: column;
        gap: 20px;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        order: -1;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Dashboard Section */
.dashboard-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    min-height: 80vh;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--electric-blue);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-top: 40px;
}

.dashboard-main {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}

.dashboard-header h3 {
    font-size: 1.5rem;
    color: var(--charcoal-gray);
}

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

.analysis-history {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 12px;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--electric-blue);
}

.history-main {
    flex: 1;
}

.history-url {
    font-weight: 600;
    color: var(--charcoal-gray);
    margin-bottom: 5px;
    word-break: break-word;
}

.history-date {
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.history-score {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 20px;
}

.history-score.score-good {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.history-score.score-medium {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.history-score.score-poor {
    background: linear-gradient(135deg, #dc3545 0%, #e91e63 100%);
}

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

.btn-icon {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--light-gray);
    transform: scale(1.1);
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--medium-gray);
}

.sidebar-card h4 {
    font-size: 1.2rem;
    color: var(--charcoal-gray);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

.btn-block:last-child {
    margin-bottom: 0;
}

.trend-chart {
    padding: 10px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip-item {
    padding: 15px;
    background: var(--light-gray);
    border-radius: 10px;
    border-left: 4px solid var(--electric-blue);
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--charcoal-gray);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--dark-gray);
    margin-bottom: 30px;
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        order: -1;
    }
}

@media (max-width: 600px) {
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dashboard-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .dashboard-actions .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dashboard-actions {
        width: 100%;
    }
    
    .dashboard-actions .btn {
        flex: 1;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .history-score {
        margin: 0;
        align-self: center;
    }
    
    .history-actions {
        align-self: flex-end;
    }
}

