/* Professional Blue Theme (Extracted from Reference) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto:wght@400;500&display=swap');

:root {
    --primary-color: #0066cc;
    --primary-dark: #004494;
    --accent-color: #ff6b00;
    --accent-hover: #e65c00;
    --text-dark: #1a1a1a;
    --text-gray: #4a4a4a;
    --text-light: #888888;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e1e4e8;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    --font-main: 'Inter', 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Layout */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin: 0;
}

.main-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

/* Main Panel (Card Style) */
.glass-panel {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 500px;
    margin-bottom: 60px;
}

/* Sidebar */
.tools-sidebar {
    width: 250px;
    background: #f8f9fa;
    padding: 20px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    text-align: left;
    font-family: inherit;
    font-weight: 500;
    width: 100%;
}

.tool-btn:hover {
    background: #e9ecef;
    color: var(--primary-color);
}

.tool-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

/* Tool Content */
.tool-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

input[type="text"] {
    width: 100%;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    padding: 14px 16px;
    border-radius: 6px;
    color: var(--text-dark);
    font-size: 1rem;
    font-family: monospace;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Results */
#results {
    margin-top: 30px;
    background: #1e1e1e;
    /* Dark terminal for results */
    border-radius: 8px;
    padding: 20px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

/* Footer */
.footer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .glass-panel {
        flex-direction: column;
    }

    .tools-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .tool-btn {
        white-space: nowrap;
    }
}

/* Info Cards (Download Section) */
.info-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.file-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.file-link {
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--primary-color);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.file-link:hover {
    background: #e2e8f0;
    color: var(--primary-dark);
}