* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: linear-gradient(135deg, #14B8A6 0%, #0F766E 100%);
    background-attachment: fixed;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #14B8A6 0%, #0F766E 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: white;
}

.header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}




.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    flex-shrink: 0;
}


/* Logo Styles */
.nav-brand {
    flex-shrink: 0;
}

.nav-brand a {
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-brand a:hover {
    transform: scale(1.05);
}

.nav-brand svg {
    transition: all 0.3s ease;
    display: block;
}

.nav-brand a:hover svg {
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.6)) drop-shadow(0 0 25px rgba(118, 75, 162, 0.4));
    transform: translateY(-2px);
}


.nav-menu {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-link:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    opacity: 0.8;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.generator-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    width: 100%;
}

.tool-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-align: center;
}

.tool-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    text-align: center;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.preview-section {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.preview-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    opacity: 0.9;
}

.preview-area {
    background: #f0f0f0;
    border-radius: 15px;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.preview-element {
    width: 150px;
    height: 150px;
    background: #00FF88;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.controls-section {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.controls-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    opacity: 0.9;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    display: block;
    color: white;
}

.control-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    padding: 0.8rem;
}

.control-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
}

.range-input {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    outline: none;
    appearance: none;
}

.range-input::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00FF88;
    cursor: pointer;
}

.range-value {
    display: inline-block;
    min-width: 40px;
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #00FF88;
    margin-left: 0.5rem;
}

.color-input {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox.checked {
    background: #00FF88;
    border-color: #00FF88;
}

.checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    font-size: 0.9rem;
    opacity: 0.8;
    cursor: pointer;
    color: white;
}

.shadows-list {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.shadows-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    opacity: 0.9;
}

.shadow-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shadow-preview {
    width: 40px;
    height: 40px;
    background: #00FF88;
    border-radius: 8px;
    flex-shrink: 0;
}

.shadow-details {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.shadow-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.action-btn.remove {
    background: rgba(244, 67, 54, 0.8);
}

.action-btn.remove:hover {
    background: rgba(244, 67, 54, 1);
}

.add-shadow-btn {
    background: linear-gradient(135deg, #00FF88, #45a049);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.add-shadow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.output-section {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.output-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    opacity: 0.9;
}

.output-area {
    width: 100%;
    min-height: 100px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: white;
    font-size: 0.9rem;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(76, 175, 80, 0.8);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
}

.presets-section {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.presets-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    opacity: 0.9;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.preset-item {
    background: #f0f0f0;
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preset-item:hover {
    transform: scale(1.05);
}

.preset-element {
    width: 60px;
    height: 60px;
    background: #00FF88;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .nav {
        gap: 0.8rem;
    }




    .logo {
        font-size: 1.2rem;
    }


/* Logo Styles */
.nav-brand {
    flex-shrink: 0;
}

.nav-brand a {
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-brand a:hover {
    transform: scale(1.05);
}

.nav-brand svg {
    transition: all 0.3s ease;
    display: block;
}

.nav-brand a:hover svg {
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.6)) drop-shadow(0 0 25px rgba(118, 75, 162, 0.4));
    transform: translateY(-2px);
}


    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        flex-wrap: nowrap;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        margin-top: 1rem;
        border-radius: 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        font-size: 1rem;
        white-space: normal;
        border-radius: 0;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .back-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .generator-container {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .tool-title {
        font-size: 2rem;
    }

    .main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tool-nav-btn {
        padding: 0.6rem;
        max-width: 80px;
        font-size: 0.85rem;
        top: auto;
        bottom: 80px;
        transform: none;
    }

    .tool-nav-btn:hover {
        transform: scale(1.05);
    }

    .tool-nav-btn.prev {
        left: 10px;
    }

    .tool-nav-btn.next {
        right: 10px;
    }

    .tool-nav-btn i {
        font-size: 1.2rem;
    }

    .tool-nav-label {
        font-size: 0.65rem;
    }

    .tool-nav-name {
        font-size: 0.6rem;
        display: none;
    }
}

/* Footer CSS */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: block;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
}

.footer-section ul li a:hover::before {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: white;
    transform: translateY(-3px) scale(1.15);
    filter: drop-shadow(0 5px 10px rgba(102, 126, 234, 0.6));
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.footer-bottom a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
    transform: translateY(-2px);
}

.footer-bottom a:hover::after {
    width: 100%;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #14B8A6 0%, #0F766E 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.6);
}

.scroll-to-top.show {
    display: flex;
}

/* Tool Navigation Buttons */
.tool-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    z-index: 999;
    max-width: 120px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tool-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.tool-nav-btn.prev {
    left: 20px;
}

.tool-nav-btn.next {
    right: 20px;
}

.tool-nav-btn i {
    font-size: 1.5rem;
}

.tool-nav-label {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

.tool-nav-name {
    font-size: 0.7rem;
    opacity: 0.7;
    line-height: 1.2;
}