:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --light-color: #f5f9ff;
    --dark-color: #333;
    --error-color: #f44336;
    --success-color: #4caf50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

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

header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.upload-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
}

.upload-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px dashed var(--accent-color);
    border-radius: 8px;
    transition: 0.3s;
    background-color: rgba(79, 195, 247, 0.05);
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.file-drop-area.highlight {
    border-color: var(--primary-color);
    background-color: rgba(79, 195, 247, 0.1);
}

.file-drop-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.file-message {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-details {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(79, 195, 247, 0.1);
    border-radius: 8px;
    width: 100%;
}

.file-details.show {
    display: block;
}

.file-name {
    font-weight: 600;
    color: var(--secondary-color);
    word-break: break-all;
}

.file-selection-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cancel-selection-btn {
    background-color: #e0e0e0;
    color: #666;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 10px;
}

.cancel-selection-btn:hover {
    background-color: #ccc;
    color: #333;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

.submit-btn:disabled {
    background-color: #b0bec5;
    cursor: not-allowed;
}

.processing-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    background-color: rgba(79, 195, 247, 0.1);
    color: var(--primary-color);
}

.processing-indicator.show {
    display: flex;
}

.spinner {
    border: 3px solid rgba(79, 195, 247, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    width: 20px;
    height: 20px;
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

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

.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    position: relative;
}

.status-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.status-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background-color: currentColor;
}

.close-btn::before {
    transform: rotate(45deg);
}

.close-btn::after {
    transform: rotate(-45deg);
}

.file-type-info {
    margin-top: 1rem;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Analysis Results Styling */
.analysis-results h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center;
}

/* Markdown Content Styling */
.markdown-content {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    line-height: 1.6;
    font-family: Arial, sans-serif;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Content Container Styling */
.content-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
}

.page-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 2rem;
}

/* Policy Page Styling */
.policy-content {
    line-height: 1.7;
    color: var(--dark-color);
}

.last-updated {
    font-style: italic;
    color: #666;
    text-align: right;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.policy-section {
    margin-bottom: 2rem;
}

.policy-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(74, 111, 165, 0.2);
    padding-bottom: 0.5rem;
}

.policy-section p {
    margin-bottom: 1rem;
}

.policy-section ul {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
}

.back-link {
    margin-top: 2rem;
    text-align: center;
}

.back-link a {
    color: var(--secondary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.markdown-content h1, 
.markdown-content h2, 
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: var(--primary-color);
    line-height: 1.2;
}

.markdown-content h1 {
    font-size: 2em;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3em;
}

.markdown-content h2 {
    font-size: 1.5em;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3em;
}

.markdown-content h3 {
    font-size: 1.25em;
}

.markdown-content h4 {
    font-size: 1em;
}

.markdown-content h5 {
    font-size: 0.875em;
}

.markdown-content h6 {
    font-size: 0.85em;
    color: #6a737d;
}

.markdown-content ul, 
.markdown-content ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.markdown-content li {
    margin-bottom: 0.5em;
}

.markdown-content li p {
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}

.markdown-content code {
    background-color: rgba(27, 31, 35, 0.05);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    font-size: 85%;
}

.markdown-content pre {
    background-color: #f6f8fa;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 16px;
    line-height: 1.45;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-size: 85%;
    border-radius: 0;
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
}

.markdown-content a {
    color: var(--secondary-color);
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content p {
    margin-top: 0;
    margin-bottom: 16px;
}

.markdown-content blockquote {
    padding: 0 1em;
    color: #6a737d;
    border-left: 0.25em solid #dfe2e5;
    margin: 0 0 16px 0;
}

.markdown-content blockquote > :first-child {
    margin-top: 0;
}

.markdown-content blockquote > :last-child {
    margin-bottom: 0;
}

.markdown-content hr {
    height: 0.25em;
    padding: 0;
    margin: 24px 0;
    background-color: #e1e4e8;
    border: 0;
}

.markdown-content img {
    max-width: 100%;
    box-sizing: content-box;
    background-color: #fff;
    border-radius: 3px;
}

/* Footer Styles */
.footer {
    background-color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 1.5rem;
    border-bottom: 1px solid rgba(74, 111, 165, 0.2);
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0 0;
    color: var(--dark-color);
    font-size: 0.9rem;
}

/* Medium screens */
@media (max-width: 992px) {
    .footer-section {
        min-width: 200px;
        flex-basis: calc(50% - 2rem);
    }
}

/* Small screens */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .upload-container, .content-container {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .file-drop-area {
        min-height: 150px;
        padding: 1.5rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .markdown-content {
        padding: 15px;
    }
    
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .policy-content {
        font-size: 0.95rem;
    }
    
    .policy-section h2 {
        font-size: 1.2rem;
    }
    
    .last-updated {
        margin-bottom: 1.5rem;
    }
    
    .back-link {
        margin-top: 1.5rem;
    }
    
    .footer {
        padding: 1.5rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer-container {
        flex-direction: column;
        padding: 0 1.5rem 1rem;
    }
    
    .footer-section {
        width: 100%;
        padding-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .footer-bottom {
        padding-top: 0.5rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .content-container {
        padding: 1.2rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .policy-section {
        margin-bottom: 1.5rem;
    }
    
    .policy-section h2 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .policy-content {
        font-size: 0.9rem;
    }
    
    .policy-section ul {
        padding-left: 1.5rem;
    }
    
    .back-link {
        margin-top: 1.2rem;
    }
    
    .footer {
        padding: 1rem 0 0.5rem;
    }
    
    .footer-container {
        padding: 0 1rem 0.5rem;
    }
    
    .footer-section {
        margin-bottom: 1rem;
    }
    
    .footer-logo {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-links li {
        margin-bottom: 0.3rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }
}
