:root {
    /* Modern Gradient Color Palette */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --secondary-gradient: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --success-gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #0d9488;
    --accent-color: #6d28d9;
    --success-color: #16a34a;
    
    /* Light Theme */
    --background-light: #f8fafc;
    --text-light: #1e293b;
    --card-background-light: rgba(255, 255, 255, 0.9);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-light: rgba(255, 255, 255, 0.7);
    
    /* Dark Theme */
    --background-dark: #0f172a;
    --text-dark: #f1f5f9;
    --card-background-dark: rgba(30, 41, 59, 0.9);
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-dark: rgba(30, 41, 59, 0.7);
    
    /* Animation Speeds */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.dark-theme::-webkit-scrollbar-track {
    background: var(--background-dark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 15s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.dark-theme {
    background-color: var(--background-dark);
    color: var(--text-dark);
}

/* Navigation Styles */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.brand {
    color: #f8fafc;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #f8fafc;
}

.theme-toggle {
    background: none;
    border: none;
    color: #f8fafc;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        padding-bottom: 0.25rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.page-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.author-info {
    color: #f8fafc;
    font-size: 1.25rem;
    margin-top: 1rem;
    font-weight: 600;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
    animation: glow 2s ease-in-out infinite;
}

.contact-info {
    color: #f8fafc;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.contact-info:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    }
}

/* Enhanced Tool Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.tool-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: #ffffff;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
}

.tool-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    border-radius: inherit;
}

.tool-icon i {
    font-size: 2.8rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Category-specific icon styles with enhanced gradients */
#image-tools .tool-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

#creative-tools .tool-icon {
    background: linear-gradient(135deg, #ec4899, #be185d);
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.3);
}

#text-tools .tool-icon {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
}

#utility-tools .tool-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.3);
}

#utility-tools .tool-icon i {
    color: #ffffff;
    font-size: 2.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#development-tools .tool-icon {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.3);
}

#development-tools .tool-icon i {
    color: #ffffff;
    font-size: 2.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Enhanced hover effects for all tool icons */
.tool-card:hover .tool-icon {
    transform: scale(1.1) translateY(-5px);
}

#utility-tools .tool-card:hover .tool-icon {
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.4);
    transform: scale(1.1) translateY(-5px);
}

#development-tools .tool-card:hover .tool-icon {
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.4);
    transform: scale(1.1) translateY(-5px);
}

/* Enhanced Tool Card Layout */
.tool-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.tool-card h3 {
    font-size: 1.4rem;
    margin: 1rem 0;
    color: #f8fafc;
}

.tool-card p {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tool-icon {
        width: 70px;
        height: 70px;
    }

    .tool-icon i {
        font-size: 2.4rem;
    }
}

.btn-primary {
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-primary i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(3px);
}

/* Section Styles */
.section-title {
    font-size: 2rem;
    color: #f8fafc;
    margin-bottom: 2rem;
    text-align: left;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #1d4ed8);
    border-radius: 2px;
}

/* Category-specific gradients */
#youtube-tools .section-title::after {
    background: linear-gradient(to right, #ff0000, #cc0000);
}

#image-tools .section-title::after {
    background: linear-gradient(to right, #10b981, #059669);
}

#creative-tools .section-title::after {
    background: linear-gradient(to right, #8b5cf6, #6d28d9);
}

#text-tools .section-title::after {
    background: linear-gradient(to right, #f59e0b, #d97706);
}

#utility-tools .section-title::after {
    background: linear-gradient(to right, #06b6d4, #0891b2);
}

#development-tools .section-title::after {
    background: linear-gradient(to right, #ec4899, #be185d);
}

/* Section spacing */
.tools-section {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tools-section:last-child {
    border-bottom: none;
}

/* Enhanced Professional Footer Styles */
.footer {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6rem 2rem 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.3) 50%, 
        transparent 100%);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h3 {
    color: #f8fafc;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-section:hover h3::after {
    width: 100px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
}

.footer-category h4 {
    color: #e2e8f0;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.footer-category h4::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-category:hover h4::before {
    width: 100%;
}

.footer-category ul,
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-category ul li,
.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-category ul li a,
.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    position: relative;
    padding-left: 0;
}

.footer-category ul li a:hover,
.footer-section ul li a:hover {
    color: #f8fafc;
    transform: translateX(8px);
}

.footer-category ul li a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    position: absolute;
    left: -20px;
}

.footer-category ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.contact-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-info:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    color: #94a3b8;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-info:hover i {
    transform: scale(1.2);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-links a i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.social-links a:hover::before {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: var(--primary-gradient);
}

.footer-bottom p {
    color: #94a3b8;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-bottom .heart-icon {
    color: #ef4444;
    display: inline-block;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsive Footer */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 3rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 4rem 1.5rem 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-section h3 {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info {
        text-align: center;
    }

    .contact-info p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3rem 1rem 1.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-links a {
        width: 38px;
        height: 38px;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 2rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transform: translateY(100%);
    opacity: 0;
    transition: all var(--transition-normal);
}

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

.notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .tool-card {
        padding: 1.2rem;
    }

    .page-header {
        padding: 2rem 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (min-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.encryption-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.encryption-controls .button-group {
    display: flex;
    gap: 1rem;
    margin-top: 0;
}

.encryption-controls .input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.textarea-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    color: var(--text-light);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-theme .btn-icon {
    color: var(--text-dark);
}

.btn-icon:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.watermark-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.watermark-controls .input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0;
}

.color-picker, .opacity-slider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.button-group button {
    flex: 1;
    min-width: 140px;
    margin: 0;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

/* Image Tools Styles */
.image-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.image-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.image-upload-area i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.image-upload-area p {
    color: var(--text-muted);
    margin: 0;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.image-preview-container {
    margin: 1rem 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-canvas {
    max-width: 100%;
    max-height: 400px;
    display: block;
    margin: 0 auto;
}

.control-group {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.slider-group:last-child {
    margin-bottom: 0;
}

.slider-group label {
    min-width: 100px;
}

.slider-group input[type="range"] {
    flex: 1;
}

.slider-group .value {
    min-width: 40px;
    text-align: right;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.color-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
}

#picked-color-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.color-display input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--input-bg);
    color: var(--text-color);
}

#crop-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    cursor: move;
    resize: both;
    overflow: auto;
}

/* Loading States */
.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--card-bg-rgb), 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: '\f110';
    font-size: 2rem;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

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

/* Drag and Drop Highlight */
.drag-over {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    transform: scale(1.02);
}

/* Tool-specific styles */
[data-tool="color-picker"] .preview-canvas {
    cursor: crosshair;
}

[data-tool="bg-remove"] .preview-canvas {
    background-image: linear-gradient(45deg, #808080 25%, transparent 25%),
                      linear-gradient(-45deg, #808080 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #808080 75%),
                      linear-gradient(-45deg, transparent 75%, #808080 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Responsive adjustments for image tools */
@media (max-width: 768px) {
    .image-preview-container {
        min-height: 150px;
    }
    
    .preview-canvas {
        max-height: 300px;
    }
    
    .control-group {
        padding: 0.8rem;
    }
    
    .slider-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .slider-group label {
        min-width: auto;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group button {
        width: 100%;
    }
}

/* Individual Tool Pages */
.tool-header {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.tool-header h1 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.tool-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.tool-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.4);
}

.tool-card.active {
    width: 100%;
    max-width: none;
    border: 2px solid #3b82f6;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px 0 rgba(37, 99, 235, 0.4);
}

.input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

textarea, input[type="text"] {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    padding: 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

textarea:focus, input[type="text"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background: rgba(15, 23, 42, 0.8);
    outline: none;
}

.textarea-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.button-group button {
    flex: 1;
    min-width: 140px;
}

.nav-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Image Tool Specific Styles */
.image-preview {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.control-panel {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.slider-group {
    margin-bottom: 1rem;
}

.slider-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.slider-group input[type="range"] {
    width: 100%;
    margin-bottom: 0.5rem;
}

.slider-value {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Adjustments for Tool Pages */
@media (max-width: 768px) {
    .tool-header {
        padding: 1.5rem 1rem;
    }

    .tool-header h1 {
        font-size: 1.8rem;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group button {
        width: 100%;
    }

    .control-panel {
        padding: 1rem;
    }
}

/* Add secondary button style */
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* Enhanced text styles */
h1, h2, h3, h4, h5, h6 {
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 0.5px;
}

p {
    color: #e2e8f0;
    line-height: 1.7;
}

/* Tool description text */
.tool-description {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Status and info text */
.status-text {
    color: #94a3b8;
    font-size: 0.9rem;
}

.info-text {
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
}

/* Utility Tools Styles */
.converter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    color: #f8fafc;
    font-weight: 500;
}

.form-select {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.6);
    color: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
    outline: none;
}

.form-input {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.6);
    color: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
    outline: none;
}

.conversion-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.conversion-input {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    min-width: 250px;
}

#swapUnits {
    padding: 0.8rem;
    border-radius: 50%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.3s ease;
}

#swapUnits:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: rotate(180deg);
}

.quick-convert {
    background: rgba(15, 23, 42, 0.4);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-convert h3 {
    margin-bottom: 1rem;
    color: #f8fafc;
    font-size: 1.2rem;
}

.formula-display {
    background: rgba(15, 23, 42, 0.4);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.formula-display h3 {
    margin-bottom: 1rem;
    color: #f8fafc;
    font-size: 1.2rem;
}

.history-section {
    margin-top: 2rem;
    background: rgba(15, 23, 42, 0.4);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-section h3 {
    margin-bottom: 1rem;
    color: #f8fafc;
    font-size: 1.2rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Calculator Styles */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-display {
    grid-column: 1 / -1;
    background: rgba(15, 23, 42, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: right;
    font-size: 2rem;
    font-family: monospace;
    margin-bottom: 1rem;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-btn {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    background: rgba(59, 130, 246, 0.1);
    color: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculator-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.calculator-btn.operator {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.calculator-btn.equals {
    background: #3b82f6;
    color: white;
}

/* Timer Styles */
.timer-display {
    font-size: 4rem;
    font-family: monospace;
    text-align: center;
    margin: 2rem 0;
    color: #f8fafc;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.timer-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timer-btn.start {
    background: #3b82f6;
    color: white;
}

.timer-btn.stop {
    background: #ef4444;
    color: white;
}

.timer-btn.reset {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

/* Development Tools Styles */
.code-editor {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.code-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-actions {
    display: flex;
    gap: 0.5rem;
}

.code-textarea {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f8fafc;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    tab-size: 4;
}

.code-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
    outline: none;
}

.code-preview {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    overflow-x: auto;
}

.code-preview pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Syntax Highlighting */
.token.comment { color: #64748b; }
.token.string { color: #22c55e; }
.token.number { color: #f59e0b; }
.token.keyword { color: #3b82f6; }
.token.operator { color: #ec4899; }
.token.function { color: #8b5cf6; }
.token.property { color: #06b6d4; }

/* Hash Generator Styles */
.hash-output {
    font-family: 'Fira Code', monospace;
    background: rgba(15, 23, 42, 0.6);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    word-break: break-all;
}

.hash-type-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.hash-type-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.1);
    color: #f8fafc;
    border: 1px solid rgba(59, 130, 246, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hash-type-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Regex Tester Styles */
.regex-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.regex-flags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.regex-flag {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.1);
    color: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.regex-flag.active {
    background: #3b82f6;
    color: white;
}

.regex-matches {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.match-highlight {
    background: rgba(59, 130, 246, 0.2);
    border-radius: 2px;
    padding: 0.1rem 0.2rem;
}

/* File Drop Zone */
.file-drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.file-drop-zone i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

/* Copy Button */
.copy-btn {
    padding: 0.5rem;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.1);
    color: #f8fafc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}

.copy-btn i {
    font-size: 1rem;
}

/* Settings Panel */
.settings-panel {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.settings-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.setting-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Split View */
.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .split-view {
        grid-template-columns: 1fr;
    }
}

/* Creative Tools Specific Styles */
#creative-tools .tool-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

#creative-tools .tool-icon {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

#creative-tools .tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Creative Tool Page Specific Styles */
.creative-tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.creative-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.creative-controls {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.preview-area {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-picker {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

.slider-control {
    width: 100%;
    margin: 1rem 0;
}

.media-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-dropzone:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.media-preview {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* Responsive Design for Creative Tools */
@media (max-width: 768px) {
    .creative-workspace {
        grid-template-columns: 1fr;
    }
    
    .creative-controls {
        order: 2;
    }
    
    .preview-area {
        order: 1;
        min-height: 300px;
    }
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.dark-theme .nav-link {
    color: var(--text-dark);
}

.nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* Responsive Navigation */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass-light);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    .dark-theme .nav-links {
        background: var(--glass-dark);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }

    .navbar {
        position: relative;
    }
}

/* YouTube Tools Specific Styles */
#youtube-tools .tool-icon {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.3);
}

#youtube-tools .tool-card {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(204, 0, 0, 0.05));
    border: 1px solid rgba(255, 0, 0, 0.1);
}

#youtube-tools .tool-card:hover {
    border-color: rgba(255, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(204, 0, 0, 0.1));
}

#youtube-tools .tool-card:hover .tool-icon {
    box-shadow: 0 12px 40px rgba(255, 0, 0, 0.4);
    transform: scale(1.1) translateY(-5px);
}

/* YouTube Tool Pages Styles */
.youtube-tool-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.youtube-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    color: #f8fafc;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.youtube-input:focus {
    border-color: #FF0000;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
    outline: none;
}

.youtube-preview {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.youtube-preview img {
    max-width: 100%;
    height: auto;
}

.thumbnail-quality {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.quality-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(255, 0, 0, 0.1);
    color: #f8fafc;
    border: 1px solid rgba(255, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quality-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.3);
}

.quality-btn.active {
    background: #FF0000;
    border-color: #FF0000;
    color: white;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 20px;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag i {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tag i:hover {
    opacity: 1;
}

.embed-options {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.embed-code {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 1rem;
    font-family: monospace;
    margin: 1rem 0;
    position: relative;
}

.copy-code {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-code:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-length-list {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.video-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.total-length {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
    margin-top: 1rem;
    color: #FF0000;
}

/* Responsive Design for YouTube Tools */
@media (max-width: 768px) {
    .youtube-tool-container {
        padding: 1rem;
    }

    .thumbnail-quality {
        flex-direction: column;
    }

    .quality-btn {
        width: 100%;
        text-align: center;
    }

    .option-group {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Image Format Converter Styles */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.format-category {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.format-category h4 {
    color: #f8fafc;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.format-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
}

.format-btn {
    padding: 0.5rem;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.1);
    color: #f8fafc;
    border: 1px solid rgba(59, 130, 246, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.format-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.format-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.conversion-options {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.conversion-options h3 {
    color: #f8fafc;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quality-settings {
    margin: 1.5rem 0;
}

.additional-options {
    margin-top: 1.5rem;
}

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

.info-item {
    background: rgba(15, 23, 42, 0.6);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.info-value {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive adjustments for Image Format Converter */
@media (max-width: 768px) {
    .format-grid {
        grid-template-columns: 1fr;
    }

    .format-buttons {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section Styles */
.faq-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--card-background-light);
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
}

.dark-theme .faq-section {
    background: var(--card-background-dark);
    box-shadow: var(--shadow-dark);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.dark-theme .faq-item p {
    color: var(--text-dark);
}

/* Related Tools Section Styles */
.related-tools {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
}

.related-tools h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.tool-category {
    margin-bottom: 2.5rem;
}

.tool-category h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    padding-left: 1rem;
    border-left: 4px solid var(--secondary-color);
}

.tool-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: var(--glass-light);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .tool-btn {
    background: var(--glass-dark);
    color: var(--text-dark);
}

.tool-btn:hover {
    transform: translateY(-2px);
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.tool-btn i {
    font-size: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .tool-buttons {
        justify-content: center;
    }

    .tool-btn {
        width: calc(50% - 0.5rem);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tool-btn {
        width: 100%;
    }
} 