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

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: #0d1117;
    color: #e6edf3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* Header Bar */
.top-header {
    background: #161b22;
    border-bottom: 1px solid #21262d;
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo-link {
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.header-logo-link:hover {
    opacity: 0.8;
}

.header-logo {
    height: 24px;
    width: auto;
}

.header-divider {
    color: #484f58;
    font-size: 1.25rem;
    font-weight: 300;
}

.header-title {
    color: #8b949e;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.header-right {
    display: flex;
    align-items: center;
}

.github-link {
    color: #8b949e;
    display: flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.github-link:hover {
    color: #f0f6fc;
    background: #21262d;
}

.github-link svg {
    display: block;
}

.container {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.title-section {
    text-align: center;
    margin-bottom: 2rem;
}

.title-section h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 8px;
}

.subtitle {
    color: #8b949e;
    font-size: 1.1rem;
    margin: 0;
}

.upload-section {
    background: #161b22;
    border: 2px dashed #30363d;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-section:hover,
.upload-section.dragover {
    border-color: #1f6feb;
    background: #0c1116;
}

#fileInput {
    display: none;
}

.upload-text {
    font-size: 1.1rem;
    color: #e6edf3;
    margin-bottom: 8px;
}

.upload-subtext {
    color: #8b949e;
    font-size: 0.9rem;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
    background: #161b22;
    border-radius: 8px;
    color: #1f6feb;
}

.error {
    display: none;
    background: #3d1a1a;
    color: #f85149;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #da3633;
    margin-bottom: 20px;
}

.results-section {
    display: none;
    background: #161b22;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #30363d;
}

.results-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #30363d;
}

.results-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f0f6fc;
}

.security-list {
    list-style: none;
}

.security-item {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid #21262d;
}

.security-item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.security-item:last-child {
    border-bottom: none;
}

/* Section headers for organizing content */
.section-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f0f6fc;
    margin: 24px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #30363d;
}

.section-header:first-child {
    margin-top: 0;
}

/* Spacing between sections */
.section-divider {
    height: 1px;
    background: #21262d;
    margin: 16px 0;
}

.security-name {
    font-weight: 500;
    color: #e6edf3;
}

.security-value {
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.security-value.secure {
    background: #1a472a;
    color: #56d364;
    border: 1px solid #2d5016;
}

.security-value.insecure {
    background: #490202;
    color: #f85149;
    border: 1px solid #da3633;
}

.security-value.partial {
    background: #4d3800;
    color: #f1c232;
    border: 1px solid #7d6608;
}

.security-value.info {
    background: #262c36;
    color: #7c8db5;
    border: 1px solid #444c56;
}

.share-btn, .copy-btn, .sarif-btn {
    background: #161b22;
    color: #e6edf3;
    border: 1px solid #30363d;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 100px;
}

.share-btn:hover, .copy-btn:hover, .sarif-btn:hover {
    background: #21262d;
    border-color: #444c56;
}

.copy-btn.copied, .sarif-btn.downloaded {
    background: #1a472a;
    border-color: #2d5016;
    color: #56d364;
    box-shadow: 0 2px 4px rgba(86, 211, 100, 0.3);
}

.share-url {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #161b22;
    color: #e6edf3;
    border-radius: 0.375rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    word-break: break-all;
    border: 1px solid #30363d;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shared-report-message {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.shared-report-info h3 {
    margin: 0 0 0.5rem 0;
    color: #1f6feb;
    font-size: 1.125rem;
}

.shared-report-info p {
    margin: 0.5rem 0;
    color: #e6edf3;
}

.shared-report-info code {
    background: #161b22;
    color: #f1c232;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    border: 1px solid #30363d;
}

.btn-secondary {
    background: #21262d;
    color: #e6edf3;
    border: 1px solid #30363d;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background: #30363d;
}

/* Hash value styling */
.hash-value {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    word-break: break-all;
    background: #161b22;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #30363d;
}

.list-details {
    margin-top: 4px;
    margin-left: 20px;
    font-size: 0.85rem;
    color: #8b949e;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .header-content {
        padding: 0 1rem;
    }

    .header-logo {
        height: 20px;
    }

    .header-title {
        font-size: 0.85rem;
    }

    .header-divider {
        font-size: 1.1rem;
    }

    .github-link svg {
        width: 18px;
        height: 18px;
    }

    .container {
        padding: 20px 15px;
    }

    .footer-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .info-section {
        min-width: 100%;
        padding: 1rem;
    }
    
    .info-title {
        font-size: 0.9rem;
    }
    
    .info-section p {
        font-size: 0.8rem;
    }

    .security-item-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .security-value {
        align-self: flex-end;
    }

    .list-details {
        margin-left: 0;
    }
}

.input-section {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
}

.capabilities-message {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #7d8590;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 400px;
    flex-shrink: 0;
    text-align: center;
}

.capabilities-message:hover {
    border-color: #444c56;
    background: #161b22;
}

.capabilities-message p {
    margin: 0;
    line-height: 1.4;
}

.capabilities-message strong {
    color: #58a6ff;
    font-weight: 600;
}

.input-container {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.input-box {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px dashed #30363d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #161b22;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-box:hover {
    border-color: #1f6feb;
    background: #0c1116;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.input-box.dragover {
    border-color: #1f6feb;
    background: #0c1116;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.upload-icon {
    display: none;
}

.input-box p {
    margin: 0.5rem 0;
    color: #e6edf3;
    text-align: center;
}

.or-text {
    color: #8b949e;
    font-size: 0.9rem;
}

.upload-btn {
    background: #161b22;
    color: #e6edf3;
    border: 1px solid #30363d;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-top: 1rem;
}

.upload-btn:hover {
    background: #21262d;
    border-color: #444c56;
}

.input-divider {
    display: flex;
    width: 10%;
    align-items: center;
    color: var(--text-secondary);
    font-weight: bold;
    padding: 0 1rem;
    flex: 0 0 auto;
}

.input-divider::before,
.input-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
    margin: 0 1rem;
}

.url-input-box {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 200px;
    justify-content: center;
    border: 2px dashed #30363d;
    border-radius: 8px;
    padding: 2rem;
    background: #161b22;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.url-input-box:hover {
    border-color: #1f6feb;
    background: #0c1116;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.url-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #30363d;
    border-radius: 6px;
    font-size: 1rem;
    background: #0d1117;
    color: #e6edf3;
    transition: all 0.3s ease;
}

.url-input:focus {
    outline: none;
    border-color: #1f6feb;
    background: #0d1117;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.1);
}

.analyze-btn {
    background: #161b22;
    color: #e6edf3;
    border: 1px solid #30363d;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.analyze-btn:hover {
    background: #21262d;
    border-color: #444c56;
}

.analyze-btn:disabled {
    background: #21262d;
    border-color: #30363d;
    color: #8b949e;
}

/* Footer styles */
.footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #30363d;
    color: #8b949e;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.info-section {
    flex: 1;
    min-width: 200px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 4px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.info-section:hover {
    border-color: #444c56;
    background: #1c2128;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.info-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.info-icon {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.info-title {
    color: #f0f6fc;
    font-size: 0.8rem;
    font-weight: 600;
}

.info-section p {
    color: #8b949e;
    font-size: 0.75rem;
    line-height: 1.2;
    margin: 0;
}

.info-section strong {
    color: #58a6ff;
    font-weight: 600;
}

.source-link {
    text-align: center;
    color: #8b949e;
    font-size: 0.85rem;
    margin: 0;
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #58a6ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Disclaimer styles */
.disclaimer {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 12px 16px;
    max-width: 400px;
    font-size: 0.85rem;
    color: #7d8590;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.disclaimer::before {
    font-size: 1rem;
    flex-shrink: 0;
}

.disclaimer:hover {
    border-color: #444c56;
    background: #161b22;
}

/* Batch results styles */
.file-result-section {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #30363d;
    border-radius: 8px;
    background-color: #0c1116;
}

.file-result-section h3 {
    margin-bottom: 10px;
    color: #f0f6fc;
    font-size: 1.1rem;
    font-weight: 600;
}

.file-result-section .security-item {
    padding: 8px 0;
    border-bottom: 1px solid #21262d;
}

.file-result-section .security-item:last-child {
    border-bottom: none;
}

/* Batch loading styles */
#batchLoading {
    display: none;
    text-align: center;
    padding: 20px;
    background: #161b22;
    border-radius: 8px;
    color: #1f6feb;
}

#batchLoading p {
    margin-top: 10px;
    font-size: 1rem;
}

#currentFile, #totalFiles {
    font-weight: 600;
    color: #f0f6fc;
}

/* Responsive adjustments for batch results */
@media (max-width: 600px) {
    .file-result-section {
        padding: 10px;
        margin-top: 15px;
    }
    
    .file-result-section h3 {
        font-size: 1rem;
    }
}

/* Tabbed interface styles */
.tabs-container {
    background: #161b22;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-top: 20px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #30363d;
    background: #0c1116;
    border-radius: 8px 8px 0 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #444c56 #0c1116;
}

.tabs-header::-webkit-scrollbar {
    height: 6px;
}

.tabs-header::-webkit-scrollbar-track {
    background: #0c1116;
}

.tabs-header::-webkit-scrollbar-thumb {
    background: #444c56;
    border-radius: 3px;
}

.tab-button {
    background: transparent;
    border: none;
    color: #8b949e;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    min-width: 120px;
    width: auto;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.tab-text {
    flex: 1;
    text-align: center;
}

.tab-close {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8b949e;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    line-height: 1;
    opacity: 0.7;
}

.tab-close:hover {
    color: #e6edf3;
    background: #21262d;
}

.tab-button:hover .tab-close {
    opacity: 1;
}

.tab-button:hover {
    color: #e6edf3;
    background: #21262d;
}

.tab-button.active {
    color: #1f6feb;
    border-bottom-color: #1f6feb;
    background: #161b22;
}

.tab-button.error {
    color: #f85149;
    border-bottom-color: #f85149;
}

.tab-button.success {
    color: #56d364;
    border-bottom-color: #56d364;
}

.tabs-content {
    padding: 0;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #30363d;
}

/* Responsive adjustments for tabs */
@media (max-width: 600px) {
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-button {
        min-width: 100px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .tab-content h2 {
        font-size: 1.3rem;
    }
}

/* Error message styling in tabs */
.error-message {
    background: #3d1a1a;
    color: #f85149;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #da3633;
    margin-top: 20px;
}

.error-message p {
    margin: 10px 0;
    font-size: 1rem;
}

.error-message p:first-child {
    margin-top: 0;
    font-weight: 600;
}

.error-message p:last-child {
    margin-bottom: 0;
}

/* Combined SARIF button styles */
.combined-sarif-btn {
    background: #1f6feb;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
    text-align: center;
}

.combined-sarif-btn:hover {
    background: #1a5bb8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(31, 111, 235, 0.3);
}

.combined-sarif-btn:disabled {
    background: #444c56;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.combined-sarif-btn span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Tabs button container for horizontal layout */
.tabs-button-container {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.tabs-button-container .combined-sarif-btn,
.tabs-button-container .close-all-reports-btn {
    flex: 1;
    margin-bottom: 0;
}

/* When only close all button is present, make it take full width */
.tabs-button-container:has(.close-all-reports-btn:only-child) .close-all-reports-btn {
    flex: none;
    width: 100%;
}

/* Close all reports button styles */
.close-all-reports-btn {
    background: #444c56;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
    text-align: center;
}

.close-all-reports-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(68, 76, 86, 0.3);
}

.close-all-reports-btn:disabled {
    background: #444c56;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.close-all-reports-btn span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Persistent batch button styles */
.persistent-batch-btn {
    background: #238636;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
    text-align: center;
}

.persistent-batch-btn:hover {
    background: #1f6f3a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(35, 134, 54, 0.3);
}

.persistent-batch-btn:disabled {
    background: #444c56;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.persistent-batch-btn span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Upload type selection buttons */
.upload-type-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

.upload-type-btn {
    background: #21262d;
    color: #8b949e;
    border: 1px solid #30363d;
    padding: 16px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    height: 48px;
    flex: 1;
    max-width: 160px;
}

.upload-type-btn:hover {
    background: #30363d;
    color: #e6edf3;
    border-color: #444c56;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.upload-type-btn.active {
    background: #1f6feb;
    color: #ffffff;
    border-color: #1f6feb;
}

.upload-type-btn.active:hover {
    background: #1a5bb8;
    border-color: #1a5bb8;
}

.upload-type-btn span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* URL input styling */
.url-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #30363d;
    border-radius: 6px;
    font-size: 1rem;
    background: #0d1117;
    color: #e6edf3;
    transition: all 0.3s ease;
}

.url-input:focus {
    outline: none;
    border-color: #1f6feb;
    background: #0d1117;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.1);
}

.analyze-btn {
    background: #161b22;
    color: #e6edf3;
    border: 1px solid #30363d;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.analyze-btn:hover {
    background: #21262d;
    border-color: #444c56;
}

.analyze-btn:disabled {
    background: #21262d;
    border-color: #30363d;
    color: #8b949e;
}

/* Responsive adjustments for upload type buttons */
@media (max-width: 600px) {
    .upload-type-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .upload-type-btn {
        justify-content: center;
        padding: 10px 16px;
    }
} 

/* Responsive design for button container */
@media (max-width: 600px) {
    .tabs-button-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .tabs-button-container .combined-sarif-btn,
    .tabs-button-container .close-all-reports-btn {
        margin-bottom: 0;
    }
} 