/* d:\mydocskit\app\client\css\app.css */
:root {
    --brand-color: #E8524A;
    --brand-hover: #D34038;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    --border-color: #eaedf3;
    --success-bg: #f0faf0;
    --success-border: #8FBC5D;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --radius: 14px;
    --radius-btn: 8px;
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-gray);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* App Navbar */
.app-navbar {
    background-color: var(--bg-white);
    height: 64px;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}
.nav-link:hover {
    color: var(--brand-color);
    background-color: #fdf0ed;
}

/* Main Content Container */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    width: 100%;
}

.content-container {
    width: 100%;
    max-width: 1100px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    margin: 16px 0;
}

/* All Tools Hub Styling */
.hub-header {
    text-align: center;
    margin-bottom: 32px;
}
.hub-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.hub-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Search Bar */
.hub-search-box {
    max-width: 500px;
    margin: 20px auto 24px;
    position: relative;
}
.hub-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.hub-search-input:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 4px rgba(232, 82, 74, 0.12);
}
.hub-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    pointer-events: none;
}

/* Category Filter Tabs */
.hub-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}
.hub-tab-btn {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: #555555;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hub-tab-btn:hover {
    border-color: #cccccc;
    color: #111111;
}
.hub-tab-btn.active {
    background-color: var(--brand-color);
    color: #ffffff;
    border-color: var(--brand-color);
}

/* Tools Grid */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hub-tool-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.hub-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #d8dce6;
}
.hub-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.hub-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.hub-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Tool View Header */
.tool-header {
    margin-bottom: 32px;
    text-align: center;
}

.tool-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tool-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #cccccc;
    border-radius: var(--radius);
    padding: 64px 24px;
    background-color: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.upload-zone:hover {
    border-color: #aaaaaa;
    background-color: #fafafa;
}

.upload-zone.dragover, .upload-zone.drag-over {
    border-color: var(--brand-color);
    background-color: rgba(232, 82, 74, 0.05);
}

.upload-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(232, 82, 74, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--brand-color);
}
.upload-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.upload-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.upload-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

/* File Preview */
.file-preview {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-btn);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary {
    background-color: var(--brand-color);
    color: var(--bg-white);
    width: 100%;
}
.btn-primary:hover:not(:disabled) {
    background-color: var(--brand-hover);
    transform: translateY(-1px);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-secondary {
    background-color: #eeeeee;
    color: var(--text-main);
}
.btn-secondary:hover {
    background-color: #dddddd;
}

/* Result Card */
.result-card {
    padding: 36px 24px;
    background: var(--success-bg);
    border: 2px solid var(--success-border);
    border-radius: var(--radius);
    display: block;
    text-align: center;
}
.result-card h2 {
    color: #2e7d32;
    margin-bottom: 12px;
    font-size: 1.6rem;
}
.file-info-text {
    color: #555555;
    font-size: 1rem;
    margin-bottom: 24px;
}

/* Ads */
.ad-container {
    max-width: 100%;
    width: 728px;
    padding: 12px;
    border: 1px solid #eee;
    text-align: center;
    background: var(--bg-white);
    margin: 16px 0;
}
.ad-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}
.toast {
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-btn);
    padding: 16px 24px;
    border-left: 4px solid var(--brand-color);
    animation: slideIn 0.3s ease forwards;
}

/* Responsive */
@media (max-width: 1024px) {
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hub-grid { grid-template-columns: 1fr; }
}
