/* Tool Page Styles - Matching Homepage Modern Theme */

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --bg-gray: #F9FAFB;
    --border: #E5E7EB;
    --white: #FFFFFF;
}

.tool-page {
    padding: 40px 0 80px;
    background: var(--white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Tool Header */
.tool-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 48px;
}

.tool-header-icon {
    flex-shrink: 0;
}

.tool-header-content {
    flex: 1;
}

.tool-header-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.tool-header h1,
.tool-container header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.tool-header p,
.tool-container header p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Modern Tool Container */
.tool-container {
    background: var(--white);
    border-radius: 12px;
}

.tool-container .card {
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tool-container .card-header {
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border);
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    color: var(--text-primary);
}

.tool-container .btn-danger {
    background: #EF4444;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.tool-container .btn-danger:hover {
    background: #DC2626;
    transform: translateY(-1px);
}

.tool-container .btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.tool-container .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.tool-container .btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.tool-container .btn-secondary:hover {
    border-color: var(--text-primary);
    transform: translateY(-1px);
}

.tool-container .btn-success {
    background: #10B981;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.tool-container .btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.tool-container .form-control,
.tool-container .form-select {
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.tool-container .form-control:focus,
.tool-container .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Upload Section */
.upload-section {
    margin-bottom: 64px;
}

.upload-card {
    background: var(--white);
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 64px 48px;
    text-align: center;
    transition: all 0.3s;
}

.upload-card:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.02);
}

.upload-icon {
    margin: 0 auto 24px;
}

.upload-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.btn-upload:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.upload-info {
    font-size: 14px;
    color: var(--text-light);
}

/* Content Section - Modern Blog Style */
.content-section {
    background: var(--white);
    padding: 60px 0;
    margin-top: 40px;
}

.content-section article {
    padding: 48px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content-section header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.content-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.content-section .lead {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.content-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.content-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.content-section ul,
.content-section ol {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-left: 24px;
}

.content-section li {
    margin-bottom: 8px;
}

.content-section strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* How to Use Section */
.how-to-section {
    margin-bottom: 64px;
}

.section-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -0.01em;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.step-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-gray);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.step-card:hover {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Features Section */
.features-section {
    padding: 64px 0;
    background: var(--bg-gray);
    border-radius: 16px;
    margin-top: 32px;
}

.features-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.feature-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--bg-gray);
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Sidebar Styling */
.sticky-top {
    background: var(--white);
    border-radius: 12px;
}

#toolsSidebar .card {
    border: 1px solid var(--border);
    border-radius: 12px;
}

#searchTools {
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

#searchTools:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* List group items in sidebar */
.list-group-item {
    border: none;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s;
    font-size: 14px;
    color: var(--text-secondary);
}

.list-group-item:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.list-group-item.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-header {
        flex-direction: column;
    }
    
    .tool-header h1,
    .tool-container header h1 {
        font-size: 24px;
    }
    
    .content-section h2 {
        font-size: 28px;
    }
    
    .content-section article {
        padding: 32px 24px;
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid-small {
        grid-template-columns: 1fr;
    }
}
