/* 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, #0a0a0a 0%, #1a1a1a 100%);
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

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

/* Header Styles */
header {
    background: #111111;
    padding: 1rem 0;
    border-bottom: 2px solid #ffeb3b;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #ffeb3b;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover {
    color: #ffeb3b;
    background: rgba(255, 235, 59, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffeb3b;
    margin: 3px 0;
    transition: 0.3s;
}

/* Tool Page Styles */
.tool-page {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.tool-container {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 2.5rem;
    border: 2px solid #ffeb3b;
    box-shadow: 0 8px 32px rgba(255, 235, 59, 0.1);
}

.tool-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tool-header h1 {
    color: #ffeb3b;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tool-header p {
    color: #b0b0b0;
    font-size: 1.2rem;
}

/* Form Styles */
.tool-content {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #ffeb3b;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

textarea, input[type="text"] {
    width: 100%;
    padding: 1rem;
    background: #2a2a2a;
    border: 2px solid rgba(255, 235, 59, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

textarea:focus, input[type="text"]:focus {
    outline: none;
    border-color: #ffeb3b;
    box-shadow: 0 0 15px rgba(255, 235, 59, 0.3);
}

textarea::placeholder {
    color: #666;
}

/* Button Styles */
.button-group {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-action {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 160px;
    justify-content: center;
}

.btn-generate {
    background: #ffeb3b;
    color: #000000;
}

.btn-generate:hover {
    background: #ffd600;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 235, 59, 0.4);
}

.btn-reset {
    background: #666;
    color: #ffffff;
    border: 2px solid #888;
}

.btn-reset:hover {
    background: #777;
    transform: translateY(-2px);
}

.btn-copy {
    background: #4CAF50;
    color: #ffffff;
}

.btn-copy:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-download {
    background: #ff9800;
    color: #000000;
}

.btn-download:hover {
    background: #f57c00;
    transform: translateY(-2px);
}

.btn-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Footer Styles */
footer {
    background: #111111;
    border-top: 1px solid #333;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-section h3 {
    color: #ffeb3b;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 1rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid #000;
}

.notification.success {
    background: #4CAF50;
    color: white;
}

.notification.error {
    background: #f44336;
    color: white;
}

.notification.info {
    background: #2196F3;
    color: white;
}

.notification.warning {
    background: #ff9800;
    color: black;
}

/* Mode Selector Styles */
.mode-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-btn {
    padding: 1rem 2rem;
    background: #2a2a2a;
    color: #ffeb3b;
    border: 2px solid #ffeb3b;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-btn.active {
    background: #ffeb3b;
    color: #000000;
}

.mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 235, 59, 0.3);
}

/* Character Counter */
.char-counter {
    text-align: right;
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .tool-container {
        padding: 1.5rem;
    }

    .tool-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #111111;
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid #333;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

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

    .btn-action {
        width: 100%;
    }

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

    .mode-selector {
        flex-direction: column;
    }

    .mode-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tool-header h1 {
        font-size: 1.8rem;
    }

    .tool-header p {
        font-size: 1rem;
    }

    textarea, input[type="text"] {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .btn-action {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animation for hamburger menu */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}
