:root {
    --primary-blue: #013d7a;
    --secondary-blue: #0066cc;
    --accent-pink: #ff3366;
    --light-bg: #f0f7ff;
    --card-bg: #ffffff;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e1e8f0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --footer-bg: #0a192f;
    --footer-text: #ccd6f6;
    --footer-heading: #e6f1ff;
    --footer-border: #233554;
    --footer-hover: #64ffda;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f7ff 0%, #e4edf5 100%);
    color: #2b2d42;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: white;
    position: sticky;
    top: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    text-decoration: none;
    color: var(--footer-bg);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.logo a:hover {
    color: var(--accent-pink);
}

/* Navigation */
.nav-links {
    display: flex;
    margin-left: 30px;
}

.nav-item {
    position: relative;
    color: black;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 10px 16px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.links a {
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
}

.links a:hover {
    color: var(--accent-pink);
}

.nav-item:hover {
    color: var(--accent-pink);
}

.dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Mega Dropdown Styles */
.mega-dropdown {
    position: absolute;
    top: 45px;
    left: -750px;
    background-color: white;
    width: 1200px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 30px;
    display: none;
    z-index: 1001;
    grid-template-columns: repeat(6, 1fr);
    border-top: 3px solid var(--accent-pink);
}

.nav-item:hover .mega-dropdown {
    display: grid;
    animation: fadeIn 0.3s ease;
}

.dropdown-section h3 {
    color: var(--primary-blue);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.dropdown-section h3 i {
    margin-right: 10px;
    color: var(--accent-pink);
    background: rgba(255, 51, 102, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.7rem;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.dropdown-link:hover {
    background-color: #f0f7ff;
    color: var(--accent-pink);
}

.dropdown-link i {
    margin-right: 12px;
    color: var(--secondary-blue);
    width: 20px;
    text-align: center;
    font-size: 14px;
}

/* Mobile Toggle */
.mobile-toggle {
    margin-left: auto;
    display: none;
    background: none;
    border: none;
    color: var(--accent-pink);
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: white;
    z-index: 999;
    transition: all 0.4s ease;
    overflow-y: auto;
    padding: 20px;
    box-shadow: var(--shadow);
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-category {
    margin-top: 20px;
}

.mobile-category-title {
    font-size: 18px;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-pink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-category-title i {
    color: var(--accent-pink);
}

.mobile-tool-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: all 0.2s;
    background: #f8fafd;
    color: var(--text-dark);
}

.mobile-tool-link:hover {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    transform: translateX(5px);
    color: var(--accent-pink);
}

.mobile-tool-link i {
    margin-right: 15px;
    color: var(--secondary-blue);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* QR Code Tool Styles */
.tool-header {
    text-align: center;
    padding: 50px 20px;
    color: white;
    margin-bottom: 40px;
}

.tool-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: var(--footer-bg);
}

.tool-header p {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.9;
    color: var(--text-light);
}

.tool-container {
    max-width: 1200px;
    margin: 0px auto 200px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tool-content {
    display: flex;
    padding: 30px;
    gap: 30px;
}

@media (max-width: 768px) {
    .tool-content {
        flex-direction: column;
    }
}

.input-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.output-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

label i {
    color: var(--secondary-blue);
}

textarea,
input,
select {
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-dark);
}

textarea:focus,
input:focus,
select:focus {
    border-color: var(--secondary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-download {
    background: linear-gradient(to right, var(--accent-pink), #ff5c7c);
}

.btn-clear {
    background: linear-gradient(to right, #6c757d, #5a6268);
}

.qr-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 320px;
    position: relative;
}

#qrcode {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid var(--border-color);
}

#qrcode canvas {
    max-width: 100%;
    max-height: 100%;
}

.download-btn {
    display: none;
}

.examples {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
    border-left: 4px solid var(--accent-pink);
}

.examples h3 {
    margin-bottom: 10px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.examples ul {
    padding-left: 20px;
}

.examples li {
    margin-bottom: 8px;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.examples li i {
    color: var(--accent-pink);
    font-size: 14px;
    margin-top: 4px;
}

.tool-footer {
    text-align: center;
    padding: 20px;
    background-color: #f1f1f1;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid #e1e8f0;
}

.color-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.color-option {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 120px;
}

.color-input {
    width: 100%;
    height: 40px;
    padding: 0;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.copyright {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.95rem;
}

.qr-placeholder {
    text-align: center;
    color: #888;
    padding: 30px;
}

.qr-placeholder i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 15px;
}

.qr-placeholder p {
    font-size: 16px;
}

.preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.qr-size-control {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 300px;
}

.qr-size-control input {
    flex: 1;
}

/* New Features */
.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.badge {
    background: var(--primary-blue);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge i {
    font-size: 0.9rem;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab {
    padding: 8px 16px;
    background: var(--light-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.tab.active {
    background: var(--primary-blue);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.logo-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logo-preview {
    width: 80px;
    height: 80px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    display: none;
}

.logo-preview i {
    font-size: 24px;
    color: #ccc;
}

.logo-controls {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.logo-size-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-size-control input {
    width: 100%;
}

.qr-pattern-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.pattern-option {
    flex: 1;
    min-width: 100px;
}

.qr-preview-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qr-preview-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qr-preview-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.history-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

.history-item {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:last-child {
    border-bottom: none;
}

.history-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.history-actions {
    display: flex;
    gap: 5px;
}

.history-btn {
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    font-size: 16px;
}

.download-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 1s ease-in-out;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .mega-dropdown {
        width: 700px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mega-dropdown {
        width: 500px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        height: 70px;
    }

    .logo a {
        font-size: 22px;
    }

    .mobile-sidebar {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .tool-container {
        margin: 20px;
    }

    .tool-header h1 {
        font-size: 2rem;
    }

    .tool-content {
        padding: 20px;
    }

    .download-actions {
        flex-direction: column;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab {
        flex: 1 0 40%;
    }
}

@media (max-width: 480px) {
    .tool-header {
        padding: 20px 15px;
    }

    .tool-header h1 {
        font-size: 1.8rem;
    }

    .tool-header p {
        font-size: 1rem;
    }

    .color-options {
        flex-direction: column;
    }
}