/* OTPGen.online - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 50%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo a {
    font-size: 24px;
    font-weight: bold;
    color: #1877f2;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #1877f2;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header .tagline {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.header .keywords {
    font-size: 14px;
    opacity: 0.8;
    font-style: italic;
}

/* Container */
.container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border: 3px solid #1877f2;
}

/* Intro Text */
.intro-text {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.intro-text h2 {
    color: #1877f2;
    margin-bottom: 15px;
    font-size: 24px;
}

.intro-text p {
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e3f2fd;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item .icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.feature-item .text {
    font-size: 12px;
    color: #1877f2;
    font-weight: 600;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1877f2;
    font-size: 16px;
}

.required {
    color: #e74c3c;
}

input[type="text"], textarea {
    width: 100%;
    padding: 15px;
    border: 3px solid #e3f2fd;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.1);
    transform: translateY(-2px);
}

textarea {
    height: 120px;
    resize: vertical;
}

/* Code Display */
.code-display {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    border: 3px solid #1877f2;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.code-number {
    font-size: 42px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #1877f2;
    letter-spacing: 6px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.code-timer {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1877f2, #42a5f5);
    transition: width 1s linear;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 15px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
    color: white;
    border: 3px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

.btn-secondary {
    background: white;
    color: #1877f2;
    border: 3px solid #1877f2;
}

.btn-secondary:hover {
    background: #1877f2;
    color: white;
    transform: translateY(-3px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.hidden {
    display: none;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 2px solid #1877f2;
    border-radius: 25px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 600;
    color: #1877f2;
    z-index: 1000;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    background: #1877f2;
    color: white;
}

/* SEO Content */
.seo-content {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    border: 2px solid #e3f2fd;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.seo-content h3 {
    color: #1877f2;
    margin-bottom: 15px;
    font-size: 20px;
}

.seo-content p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 30px 0;
    text-align: center;
    color: white;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.footer p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 25px;
        margin: 10px;
    }
    
    .header h1 {
        font-size: 36px;
    }
    
    .code-number {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu {
        gap: 15px;
        font-size: 14px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        display: none;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}