/* Reset and Base Styles */
@font-face {
  font-family: 'Quantico';
  src: url('../fonts/Quantico-Regular.ttf') format('truetype');
}

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

.navbar,
.navbar a,
.empty-state-text,
.empty-state-icon,
.empty-state-icon-error
{
    cursor: default !important;
    user-select: none;
}


html,
body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #181818;
    color: #d4d4d4;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 50px;
    background-color: #181818;
    border-bottom: 1px solid #2c2c2c;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar a {
    display: inline-block;
    padding: 14px 20px;
    color: #858585;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.navbar a:hover {
    color: #ffffff;
}

.navbar a.current {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #007acc;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto; /* Center */
    padding: 90px 20px 40px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.header .subtitle {
    font-size: 16px;
    color: #858585;
}

/* Analysis Container */
.analysis-wrapper {
    position: relative;
    margin-bottom: 40px;
}

#analysisContainer {
    width: 100%;
    min-height: 400px;
    background-color: #1f1f1f;
    border: none;
    border-radius: 4px;
    padding: 30px;
    position: relative;
    
}

/* AI Analysis Output */
.analysis-content {
    color: #d4d4d4;
    line-height: 1.6;
}

.analysis-content h1 {
    color: #007acc;
    font-size: 24px;
    margin-bottom: 20px;
}

.analysis-content h2 {
    color: #90c0e0;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.analysis-content h3 {
    color: #90c0e0;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

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

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

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

.analysis-content ul li::marker {
    color: #90c0e0;
}

.analysis-content pre {
    background-color: #252526;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 15px 0;
    border: 1px solid #474747;
}

.analysis-content code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #ce9178;
}

.analysis-content pre code {
    color: #d4d4d4;
}

.analysis-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    background-color: #252526;
}

.analysis-content table th,
.analysis-content table td {
    border: 1px solid #474747;
    padding: 12px;
    text-align: left;
}

.analysis-content table th {
    background-color: #2c2c2c;
    color: #90c0e0;
    font-weight: 600;
}

.analysis-content table td {
    color: #d4d4d4;
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    color: #007acc;
}

.loading-text {
    font-size: 16px;
    margin-top: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #474747;
    border-top-color: #007acc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    color: #858585;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 4.5rem;
    font-family: monospace;
    font-family: 'Quantico', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
}

/* Error states */
.empty-state-text-error {
    font-size: 16px;
    font-weight: normal;
}

.empty-state-icon-error {
    color: #ff6b6b;
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text.active{
    color: #007acc;
    animation: pulse 5.0s ease-in-out infinite !important;
}


@keyframes pulse {
    0% {
        color: #1287d4;
    }
    50% {
        color: #90c0e0; 
    }
    100% {
        color: #1287d4;
    }
}

/* Status Message */
.status-message {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #858585;
    min-height: 20px;
}

.status-message.active {
    color: #007acc;
}

.status-message.error{
    color: #ff6b6b;
}


/* Scrollbar Styling */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    width: 12px;
    background: #3C3C3C;
    min-height: 44px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ASCII Scrollbar */
.empty-state-text::-webkit-scrollbar {
    height: 8px;
}

.empty-state-text::-webkit-scrollbar-track {
    background: transparent;
}

.empty-state-text::-webkit-scrollbar-thumb {
    background: #3C3C3C;
    border-radius: 4px;
}

.empty-state-text::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ==================== RESPONSIVENESS ==================== */


@media (max-width: 768px) {
    /* Change text to center align */
    .empty-state-text {
        text-align: center;
    }
}