:root {
    /* Cores GoalSoft - Azul claro/ciano baseado nas logos */
    --goalsoft-blue: #60a5fa;
    --goalsoft-blue-dark: #3b82f6;
    --goalsoft-blue-light: #93c5fd;
    --goalsoft-cyan: #22d3ee;
    
    /* Backgrounds */
    --bg-primary: #0a0e27;
    --bg-secondary: #131829;
    --bg-card: #1a1f3a;
    --bg-hover: #252b47;
    
    /* Textos */
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    /* Bordas */
    --border-color: #2d3748;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--goalsoft-blue) 0%, var(--goalsoft-cyan) 100%);
    --gradient-bg: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                   radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    background-image: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* ========== SIDEBAR (compartilhado) ========== */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-container-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.goalsoft-logo-img {
    max-width: 180px;
    height: auto;
    display: block;
}

/* Ajustes para HD */
@media (max-width: 1440px) and (min-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .home-container {
        margin-left: 240px;
    }
    
    .sidebar-header {
        padding: 1.5rem 1.25rem;
    }
    
    .goalsoft-logo-img {
        max-width: 160px;
    }
    
    .nav-item {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .nav-icon {
        font-size: 1rem;
        width: 18px;
    }
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--goalsoft-blue);
    font-weight: 800;
}

.user-info {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.user-email {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    word-break: break-all;
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--goalsoft-blue);
    border-left-color: var(--goalsoft-blue);
}

.nav-icon {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.plan-info {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.plan-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.plan-label strong {
    color: var(--text-primary);
    font-weight: 600;
}

.plan-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-hover);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--goalsoft-blue);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 35px;
}

.home-container {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== HEADER ========== */
.home-header {
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.powered-icon {
    color: var(--goalsoft-blue);
    font-size: 1rem;
}

.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========== MAIN CONTENT ========== */
.home-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

/* ========== HERO SECTION ========== */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

.logo-container {
    margin-bottom: 2rem;
}

.goalsoft-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.goalsoft-logo-main {
    max-width: 200px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 25px rgba(96, 165, 250, 0.4));
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--goalsoft-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-weight: 400;
}

/* ========== URL INPUT ========== */
.url-input-container {
    max-width: 800px;
    margin: 0 auto;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.input-wrapper:focus-within {
    border-color: var(--goalsoft-blue);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.1), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.input-icon {
    font-size: 1.25rem;
    padding: 0 1rem;
    color: var(--text-secondary);
    width: 48px;
    text-align: center;
}

.home-url-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 1rem 0;
    font-weight: 500;
    outline: none;
}

.home-url-input::placeholder {
    color: var(--text-muted);
}

.home-analyze-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(96, 165, 250, 0.4);
    font-family: inherit;
}

.home-analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.5);
}

.home-analyze-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1rem;
}

.input-hint {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========== FEATURES SECTION ========== */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--goalsoft-blue);
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--goalsoft-blue);
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.3));
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== STATS SECTION ========== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--goalsoft-blue);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--goalsoft-blue);
    opacity: 0.9;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--goalsoft-blue);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== HISTORY SECTION ========== */
.history-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.history-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.clear-history-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid var(--danger-red);
    border-radius: 8px;
    color: var(--danger-red);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.clear-history-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: translateY(-1px);
}

.clear-icon {
    font-size: 0.875rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.history-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.history-item:hover {
    border-color: var(--goalsoft-blue);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.history-item-info {
    flex: 1;
}

.history-item-url {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.history-item-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.history-item-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.history-item-score {
    font-size: 0.875rem;
    color: var(--goalsoft-blue);
    font-weight: 700;
}

.history-item-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.history-view-btn {
    display: flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: var(--goalsoft-blue);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.history-view-btn:hover {
    background: var(--goalsoft-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.history-delete-btn {
    padding: 0.625rem 0.875rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-delete-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 2px solid var(--goalsoft-blue);
    border-radius: 12px;
    color: var(--goalsoft-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.dashboard-link:hover {
    background: var(--goalsoft-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.4);
}

.dashboard-link i {
    font-size: 1.125rem;
}

/* ========== RESPONSIVE ========== */
/* HD (1366x768) e resoluções similares */
@media (max-width: 1440px) and (min-width: 1024px) {
    .home-main {
        padding: 2rem 1.5rem;
        max-width: 1100px;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }
    
    .goalsoft-logo-main {
        max-width: 160px;
    }
    
    .url-input-container {
        max-width: 700px;
    }
    
    .input-wrapper {
        padding: 0.4rem;
    }
    
    .home-url-input {
        font-size: 0.9375rem;
        padding: 0.875rem 0;
    }
    
    .home-analyze-btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
    }
    
    .features-section {
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    .feature-title {
        font-size: 1.125rem;
    }
    
    .feature-description {
        font-size: 0.875rem;
    }
    
    .stats-section {
        gap: 1.25rem;
        margin-bottom: 3rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon {
        font-size: 1.75rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .history-section {
        padding: 1.5rem;
    }
    
    .history-title {
        font-size: 1.25rem;
    }
    
    .home-header {
        padding: 1.25rem 1.5rem;
    }
}

/* Tablets e telas menores */
@media (max-width: 1023px) {
    .sidebar {
        width: 220px;
    }
    
    .home-container {
        margin-left: 220px;
    }
    
    .home-main {
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .features-section {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .home-container {
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.9375rem;
    }
    
    .input-wrapper {
        flex-direction: column;
        padding: 1rem;
    }
    
    .home-url-input {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .home-analyze-btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-section {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .history-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

