/* CSS Variables for Dynamic Theming */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --background-color: #ffffff;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size: 16px;
    --font-weight: 400;
    --border-radius: 8px;
    --container-padding: 20px;
    --button-height: 40px;
    --animation-speed: 0.3s;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Dark theme variables */
[data-theme="dark"] {
    --primary-color: #0d6efd;
    --secondary-color: #495057;
    --accent-color: #198754;
    --background-color: #212529;
    --text-color: #ffffff;
    --border-color: #495057;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    color: #fff;
    min-height: 100vh;
    padding: 0;
}

/* Navigation Bar */
.top-nav {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo h1 a {
    color: #ff6600;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ff6600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    list-style: none;
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
    content: " > ";
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb a {
    color: #ff6600;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Header Styles */
header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Editor Styles */
.editor-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Tools Panel Position Variants */
.editor-container.tools-left {
    flex-direction: row;
}

.editor-container.tools-left .tools-panel {
    order: -1;
}

.editor-container.tools-right {
    flex-direction: row;
}

.editor-container.tools-bottom {
    flex-direction: column;
}

.editor-container.tools-bottom .tools-panel {
    flex: 1;
    max-height: none;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.editor-container.tools-bottom .tool-section {
    margin-bottom: 0;
}

.canvas-section {
    flex: 1;
    min-width: 300px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#thumbnailCanvas {
    width: 100%;
    max-width: 1280px;
    height: auto;
    background: #000;
    border: 2px solid #fff;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

.canvas-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.canvas-controls button {
    padding: 12px 25px;
    font-size: 1rem;
    background: linear-gradient(to right, #ff0000, #ff6600);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.canvas-controls button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

/* Tools Panel */
.tools-panel {
    flex: 0 0 350px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-height: 720px;
    overflow-y: auto;
}

.tool-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-section:last-child {
    border-bottom: none;
}

.tool-section h2 {
    margin-bottom: 15px;
    color: #ff6600;
    font-size: 1.5rem;
}

.tool-section h3 {
    margin: 15px 0 10px;
    color: #00ccff;
    font-size: 1.2rem;
}

/* Background Options */
.background-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.bg-option {
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.bg-option:hover {
    background: rgba(255, 102, 0, 0.3);
    transform: translateY(-2px);
}

.bg-option.active {
    background: linear-gradient(to right, #ff0000, #ff6600);
    border-color: #ff0000;
}

/* Custom Gradient Section */
.custom-gradient-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.gradient-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.color-picker-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-group label {
    font-size: 0.9rem;
    min-width: 60px;
}

.color-picker-group input[type="color"] {
    width: 50px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.gradient-direction {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gradient-direction label {
    font-size: 0.9rem;
}

.gradient-direction select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.gradient-sliders {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gradient-sliders label {
    font-size: 0.9rem;
}

.gradient-sliders input[type="range"] {
    width: 100%;
}

.gradient-sliders {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gradient-sliders span {
    min-width: 40px;
    text-align: center;
    font-size: 0.9rem;
}

.auto-gradient-controls {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.auto-gradient-controls label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.auto-gradient-sliders {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.auto-gradient-sliders label {
    font-size: 0.8rem;
    min-width: 70px;
    margin-bottom: 0;
}

.auto-gradient-sliders span {
    min-width: 40px;
    text-align: center;
    font-size: 0.8rem;
}

#applyCustomGradient {
    padding: 10px;
    background: linear-gradient(to right, #00c853, #009624);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 5px;
}

#applyCustomGradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.4);
}

/* Template Options */
.template-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.template-option {
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.template-option:hover {
    background: rgba(255, 102, 0, 0.3);
    transform: translateY(-2px);
}

/* Text Controls */
#textInput {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
}

.text-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.text-controls select,
.text-controls input {
    flex: 1;
    min-width: 100px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

#addText {
    flex: 1 100%;
    padding: 10px;
    background: linear-gradient(to right, #00c853, #009624);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#addText:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.4);
}

.text-styles {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.text-styles button {
    flex: 1;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

.text-styles button.active {
    background: linear-gradient(to right, #2962ff, #00b0ff);
}

.text-styles select {
    flex: 2;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.text-positioning {
    margin-bottom: 15px;
}

.text-positioning label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.text-positioning input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
}

#applyTextPosition {
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#applyTextPosition:hover {
    background: rgba(255, 102, 0, 0.3);
}

.text-effects {
    display: flex;
    gap: 5px;
}

.text-effects button {
    flex: 1;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
}

.text-effects button.active {
    background: linear-gradient(to right, #ff00ff, #ff0066);
}

.text-resize-info {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 0.85rem;
}

.text-resize-info small {
    color: #ccc;
}

/* Canvas text selection and resize handle */
#thumbnailCanvas {
    cursor: default;
}

#thumbnailCanvas.text-selected {
    cursor: move;
}

#thumbnailCanvas.resize-handle {
    cursor: se-resize;
}

/* Drawing Controls */
.drawing-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.drawing-controls button {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.drawing-controls button:hover {
    background: rgba(255, 102, 0, 0.3);
    border-color: #ff6600;
    transform: translateY(-2px);
}

.drawing-controls button.active {
    background: linear-gradient(to right, #2962ff, #00b0ff);
    border-color: #2962ff;
    box-shadow: 0 4px 15px rgba(41, 98, 255, 0.4);
}

.drawing-controls button.active::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 2px;
    background: #00c853;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawing-controls input[type="color"] {
    flex: 1;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.drawing-controls input[type="range"] {
    flex: 1 100%;
    margin-top: 10px;
}

.drawing-info {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 0.85rem;
}

.drawing-info small {
    color: #ccc;
}

/* Shape Options */
.shape-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.shape-option {
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.shape-option:hover {
    background: rgba(255, 102, 0, 0.3);
    transform: translateY(-2px);
}

/* Icon Options */
.icon-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.icon-option {
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    text-align: center;
}

.icon-option:hover {
    background: rgba(255, 102, 0, 0.3);
    transform: translateY(-2px);
}

/* Image Controls */
.image-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.image-controls button {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-controls button:hover {
    background: rgba(255, 102, 0, 0.3);
}

/* Filter Options */
.filter-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.filter-option {
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.8rem;
}

.filter-option:hover {
    background: rgba(255, 102, 0, 0.3);
    transform: translateY(-2px);
}

.filter-option.active {
    background: linear-gradient(to right, #ff0000, #ff6600);
    border-color: #ff0000;
}

/* Blend Options */
.blend-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.blend-option {
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.8rem;
}

.blend-option:hover {
    background: rgba(255, 102, 0, 0.3);
    transform: translateY(-2px);
}

.blend-option.active {
    background: linear-gradient(to right, #00ff00, #00cc66);
    border-color: #00ff00;
}

/* Export Options */
.export-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.export-options button {
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-options button:hover {
    background: rgba(255, 102, 0, 0.3);
}

.quality-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quality-control label {
    font-size: 0.9rem;
}

.quality-control input[type="range"] {
    flex: 1;
}

.quality-control span {
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

/* Feature Table Section */
.feature-table-section {
    margin: 40px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-table-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #ff6600;
    font-size: 2rem;
}

.feature-table-container {
    overflow-x: auto;
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.feature-table th,
.feature-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-table th {
    background: rgba(255, 102, 0, 0.2);
    color: #ff6600;
    font-weight: bold;
}

.feature-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* How to Use Section */
.how-to-use-section {
    margin: 40px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.how-to-use-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6600;
    font-size: 2rem;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.step {
    flex: 1;
    min-width: 250px;
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
}

.step-number {
    background: linear-gradient(to right, #ff0000, #ff6600);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #00ccff;
    margin-bottom: 10px;
}

/* FAQ Section */
.faq-section {
    margin: 40px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6600;
    font-size: 2rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    color: #00ccff;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
}

.faq-answer {
    padding: 10px 0;
    line-height: 1.6;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3,
.footer-section h4 {
    color: #ff6600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ff6600;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    .editor-container {
        gap: 20px;
    }
    
    .tools-panel {
        flex: 0 0 300px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 15px;
    }
    
    .editor-container {
        flex-direction: column;
    }
    
    .tools-panel {
        flex: 1;
        width: 100%;
        max-height: none;
    }
    
    .canvas-controls {
        flex-wrap: wrap;
    }
    
    .canvas-controls button {
        flex: 1 100%;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .steps-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    body {
        padding: 10px;
    }
    
    .container {
        max-width: 100%;
        padding: 10px;
    }
    
    .canvas-section {
        padding: 10px;
    }
    
    .tools-panel {
        padding: 15px;
    }
    
    .background-options,
    .template-options,
    .shape-options,
    .icon-options,
    .filter-options,
    .blend-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .text-controls {
        flex-direction: column;
    }
    
    .text-styles,
    .drawing-controls {
        flex-direction: column;
    }
    
    .image-controls {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .tool-section h2 {
        font-size: 1.3rem;
    }
    
    .feature-table-section,
    .how-to-use-section,
    .faq-section {
        padding: 20px 15px;
    }
    
    .feature-table-section h2,
    .how-to-use-section h2,
    .faq-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .background-options,
    .template-options,
    .shape-options,
    .icon-options,
    .filter-options,
    .blend-options {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .logo h1 a {
        font-size: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* Scrollbar styling */
.tools-panel::-webkit-scrollbar {
    width: 8px;
}

.tools-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.tools-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 102, 0, 0.5);
    border-radius: 4px;
}

.tools-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 102, 0, 0.8);
}

/* Animation for UI elements */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-section {
    animation: fadeIn 0.3s ease-out;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
}

/* Additional styles for new pages */
.contact-hero, .faq-hero, .policy-hero, .howto-hero {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 10px;
}

.contact-hero h1, .faq-hero h1, .policy-hero h1, .howto-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ff6600;
}

.contact-hero p, .faq-hero p, .policy-hero p, .howto-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.contact-content {
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h2, .contact-form h2 {
    color: #ff6600;
    margin-bottom: 20px;
}

.contact-method {
    margin-bottom: 30px;
}

.contact-method h3 {
    color: #00ccff;
    margin-bottom: 10px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-primary {
    padding: 12px 30px;
    background: linear-gradient(to right, #ff0000, #ff6600);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.faq-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.faq-item h2 {
    color: #00ccff;
    margin-bottom: 15px;
}

.policy-text h2 {
    color: #ff6600;
    margin: 30px 0 15px;
}

.policy-text ul {
    margin: 15px 0 15px 30px;
}

.policy-text li {
    margin-bottom: 10px;
}

.howto-steps {
    margin-bottom: 40px;
}

.step {
    display: flex;
    margin-bottom: 40px;
    gap: 20px;
}

.step-number {
    background: linear-gradient(to right, #ff0000, #ff6600);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 5px;
}

.step-content h2 {
    color: #00ccff;
    margin-bottom: 15px;
}

.step-content ul {
    margin: 15px 0 15px 20px;
}

.step-content li {
    margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
}

.feature h3 {
    color: #ffcc00;
    margin-bottom: 10px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tip {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 10px;
}

.tip h3 {
    color: #00ff99;
    margin-bottom: 15px;
}

.cta-section {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 40px 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ff6600;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.faq-preview {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 40px 0;
}

.faq-preview h2 {
    color: #ff6600;
    margin-bottom: 20px;
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
    }
    
    .contact-hero h1, .faq-hero h1, .policy-hero h1, .howto-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero p, .faq-hero p, .policy-hero p, .howto-hero p {
        font-size: 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}
