:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --light: #f8fafc;
    --dark: #1e293b;
    --accent: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo:hover {
    color: var(--primary-dark);
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

nav a:hover {
    color: var(--primary);
}

nav a.active {
    color: var(--primary);
    font-weight: 600;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    padding: 5px;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--secondary);
    padding: 5px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--light);
    color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--light);
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

.breadcrumb li {
    font-size: 0.9rem;
    color: var(--secondary);
}

.breadcrumb li:last-child {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--border);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 25px;
    opacity: 0.9;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.search-box button:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

/* Statistics */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Categories Section */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--dark);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.5rem;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.category-card p {
    color: var(--secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

.category-card .tools-count {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Featured Tools */
.featured-tools {
    margin-bottom: 40px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tool-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.tool-card p {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.tool-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Tool Page Styles */
.tool-page {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin: 40px auto;
}

.tool-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.tool-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.tool-header p {
    color: var(--secondary);
    font-size: 1.1rem;
}

.tool-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.tool-input-area {
    margin-bottom: 25px;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.input-group input, 
.input-group textarea, 
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus, 
.input-group textarea:focus, 
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.input-group textarea {
    min-height: 150px;
    resize: vertical;
    font-family: 'Courier New', monospace;
}

.tool-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--light);
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #0da271;
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.result-box {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 5px solid var(--success);
    margin-top: 20px;
}

.result-box p {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.result-box span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--success);
    display: block;
    margin-top: 5px;
}

.tool-sidebar {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
}

.tool-sidebar h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
}

.related-tools {
    list-style: none;
}

.related-tools li {
    margin-bottom: 10px;
}

.related-tools a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius);
}

.related-tools a:hover {
    color: var(--primary);
    background: white;
}

.info-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.info-section h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.info-section p {
    margin-bottom: 15px;
    color: var(--secondary);
}

/* All Tools Page */
.page-header {
    background: var(--light);
    padding: 40px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-dark);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-top: 10px;
}

.category-tools-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.category-tools-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.category-tools-list li a:hover {
    background: #eef2ff;
    color: var(--primary);
    transform: translateX(5px);
    border-color: var(--primary);
}

.category-tools-list li a::before {
    content: '🔹';
    color: var(--primary);
}

/* Ad Placeholders */
.ad-container {
    margin: 30px 0;
    text-align: center;
}

.ad-banner {
    background: #e2e8f0;
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 0.9rem;
    border: 2px dashed var(--border);
}

.ad-banner.horizontal {
    height: 90px;
    width: 100%;
}

.ad-banner.vertical {
    height: 250px;
    width: 300px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background: var(--danger);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .tool-container {
        grid-template-columns: 1fr;
    }
    
    .tool-sidebar {
        order: -1;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    nav {
        width: 100%;
        margin-top: 15px;
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .categories {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tools-list {
        grid-template-columns: 1fr;
    }
    
    .tool-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}
/* Add these styles to your existing style.css file */

/* Category pages */
.category-tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tool-category-group {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.tool-category-group h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
}

.featured-tool {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: var(--radius);
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.featured-tool h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.featured-tool p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.featured-tool .btn {
    background: white;
    color: var(--primary);
    font-weight: 600;
}

.featured-tool .btn:hover {
    background: var(--light);
    transform: translateY(-2px);
}

/* Tool page breadcrumb fix */
.breadcrumb {
    background: var(--light);
    padding: 12px 0;
    font-size: 0.9rem;
}

/* Active state enhancement */
nav a.active {
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

nav a.active::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 2px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .category-tools {
        grid-template-columns: 1fr;
    }
    
    .tool-category-group {
        margin-bottom: 15px;
    }
    
    .featured-tool {
        padding: 20px;
    }
    
    .featured-tool h3 {
        font-size: 1.2rem;
    }
}

/* Dark mode support */
body.dark-mode {
    background-color: #1a202c;
    color: #e2e8f0;
}

body.dark-mode header {
    background-color: #2d3748;
}

body.dark-mode .category-card,
body.dark-mode .tool-card,
body.dark-mode .stat-card,
body.dark-mode .tool-category-group,
body.dark-mode .tool-page {
    background-color: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .category-card h3,
body.dark-mode .tool-card h3,
body.dark-mode .tool-category-group h3 {
    color: #e2e8f0;
}

body.dark-mode .category-card p,
body.dark-mode .tool-card p {
    color: #cbd5e0;
}

body.dark-mode .tool-sidebar {
    background-color: #4a5568;
}

body.dark-mode .breadcrumb {
    background-color: #2d3748;
}

body.dark-mode .page-header {
    background-color: #2d3748;
}

body.dark-mode .input-group input,
body.dark-mode .input-group textarea,
body.dark-mode .input-group select {
    background-color: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}

body.dark-mode .btn-secondary {
    background-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .footer-links a {
    color: #a0aec0;
}

body.dark-mode .footer-links a:hover {
    color: #ffffff;
}

/* Category tools list dark mode */
body.dark-mode .category-tools-list li a {
    background-color: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}

body.dark-mode .category-tools-list li a:hover {
    background-color: #5a6578;
    border-color: var(--primary);
}
/* Category Pages Specific Styles */
.section-intro {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
}

.section-intro p {
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.7;
}

.category-tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tool-category-group {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.tool-category-group:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.tool-category-group h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-category-group .category-tools-list {
    list-style: none;
    padding: 0;
}

.tool-category-group .category-tools-list li {
    margin-bottom: 10px;
    padding: 0;
}

.tool-category-group .category-tools-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--light);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
    border: 1px solid transparent;
}

.tool-category-group .category-tools-list li a:hover {
    background: #eef2ff;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateX(5px);
}

.tool-badge {
    background: var(--accent);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.featured-tool {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: var(--radius);
    padding: 40px;
    margin: 50px 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.featured-tool h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

.featured-tool p {
    opacity: 0.9;
    margin-bottom: 25px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.featured-tool .btn {
    background: white;
    color: var(--primary);
    font-weight: 600;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.featured-tool .btn:hover {
    background: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefits-grid, .tips-grid, .resources-grid, .table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.benefit, .tip, .resource, .conversion-table {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.benefit h4, .tip h4, .resource h4, .conversion-table h4 {
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit p, .tip p {
    color: var(--secondary);
    line-height: 1.6;
}

.resource ul, .conversion-table ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource li, .conversion-table li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--secondary);
}

.resource li:last-child, .conversion-table li:last-child {
    border-bottom: none;
}

.conversion-table {
    text-align: center;
}

.conversion-table h4 {
    justify-content: center;
}

.info-section, .calculator-tips, .security-tips, .developer-tips, .conversion-tables {
    margin: 40px 0;
    padding: 30px;
    background: var(--light);
    border-radius: var(--radius);
}

.info-section h3, .calculator-tips h3, .security-tips h3, .developer-tips h3, .conversion-tables h3 {
    color: var(--dark);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.5rem;
}

/* Tool page specific */
.results-section {
    margin: 25px 0;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.result-item {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.result-label {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.tool-tips {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 20px;
    box-shadow: var(--shadow);
}

.tool-tips h3 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-tips p {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Dark mode for category pages */
body.dark-mode .section-intro {
    background: #2d3748;
}

body.dark-mode .tool-category-group {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .tool-category-group h3 {
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

body.dark-mode .tool-category-group .category-tools-list li a {
    background: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .benefit, 
body.dark-mode .tip, 
body.dark-mode .resource, 
body.dark-mode .conversion-table,
body.dark-mode .result-item,
body.dark-mode .tool-tips {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .benefit p, 
body.dark-mode .tip p, 
body.dark-mode .resource li, 
body.dark-mode .conversion-table li {
    color: #cbd5e0;
}

body.dark-mode .resource li, 
body.dark-mode .conversion-table li {
    border-bottom-color: #4a5568;
}

body.dark-mode .result-label {
    color: #a0aec0;
}

body.dark-mode .result-value {
    color: #63b3ed;
}

body.dark-mode .info-section,
body.dark-mode .calculator-tips,
body.dark-mode .security-tips,
body.dark-mode .developer-tips,
body.dark-mode .conversion-tables,
body.dark-mode .results-section {
    background: #2d3748;
}

body.dark-mode .info-section h3,
body.dark-mode .calculator-tips h3,
body.dark-mode .security-tips h3,
body.dark-mode .developer-tips h3,
body.dark-mode .conversion-tables h3 {
    color: #e2e8f0;
}

/* Responsive */
@media (max-width: 992px) {
    .category-tools {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .featured-tool {
        padding: 30px 20px;
    }
    
    .featured-tool h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .category-tools {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid, .tips-grid, .resources-grid, .table-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-tool {
        margin: 30px 0;
        padding: 25px 15px;
    }
    
    .info-section, .calculator-tips, .security-tips, .developer-tips, .conversion-tables {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-tool h3 {
        font-size: 1.3rem;
    }
    
    .featured-tool .btn {
        width: 100%;
    }
}
