* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hind Siliguri', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a237e, #4a148c);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    padding: 30px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 20px;
}

header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

header h1 i {
    color: #3498db;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.language-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

#languageSelect {
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #3498db;
    font-size: 1rem;
    background-color: white;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
}

#languageSelect:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

#applyLanguage {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

#applyLanguage:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(39, 174, 96, 0.3);
    background: linear-gradient(135deg, #229954, #27ae60);
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.setup-section, .code-display-section, .info-section, .example-section {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2 i, h3 i {
    color: #3498db;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

#secretKey {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: 'Courier New', monospace;
}

#secretKey:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.btn-clear {
    padding: 15px 25px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-weight: 600;
    white-space: nowrap;
}

.btn-clear:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(231, 76, 60, 0.3);
}

.key-info {
    background-color: #e8f4fc;
    border-radius: 10px;
    padding: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-info i {
    color: #3498db;
    font-size: 1.2rem;
}

.code-display-section {
    text-align: center;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.code-actions {
    display: flex;
    gap: 10px;
}

.code-display {
    background: linear-gradient(135deg, #1a237e, #4a148c);
    color: white;
    font-size: 3.5rem;
    font-weight: bold;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    letter-spacing: 10px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.code-placeholder {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.timer {
    margin: 20px 0 30px;
    opacity: 0.7;
}

.timer.active {
    opacity: 1;
}

.timer-bar {
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #3498db);
    width: 100%;
    transition: width 1s linear;
}

.time-left {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: bold;
}

.generate-btn-container {
    margin-top: 10px;
}

.btn-primary {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.3rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.btn-small {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 600;
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(52, 152, 219, 0.3);
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(52, 152, 219, 0.3);
    background-color: #2980b9;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.example-keys {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.example-key {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #3498db;
    flex-wrap: wrap;
}

.key-name {
    font-weight: bold;
    color: #2c3e50;
    min-width: 70px;
}

.example-key code {
    flex: 1;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
    font-weight: bold;
    min-width: 200px;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}

footer i {
    color: #3498db;
    margin-right: 5px;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2ecc71;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
    font-weight: bold;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .code-display {
        font-size: 2.5rem;
        padding: 20px;
        letter-spacing: 5px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .btn-clear {
        width: 100%;
        justify-content: center;
    }
    
    .code-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .code-actions {
        justify-content: center;
    }
    
    .example-key {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-large {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
    
    .language-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    #languageSelect {
        width: 100%;
    }
    
    #applyLanguage {
        width: 100%;
        justify-content: center;
    }
}