/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
}

.left-column {
    min-width: 0;
}

.right-column {
    padding-left: 20px;
    padding-right: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 14px;
    color: #555;
}

.right-column h2 {
    color: #333;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 0px;
}

.right-column h3 {
    color: #444;
    font-size: 16px;
    margin-top: 16px;
    margin-bottom: 12px;
}

.right-column p {
    line-height: 1.6;
    margin-bottom: 8px;
}

.right-column ul,
.right-column ol {
    margin: 0 0 15px 20px;
    padding: 0;
}

.right-column li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.right-column strong {
    color: #333;
    font-weight: 600;
}

.right-column a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.right-column a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

.label-section {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 30px;
}

.label-inputs {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-width: 0;
}

.label-inputs .form-group {
    margin-bottom: 0;
}

.settings-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.settings-group .form-group {
    margin-bottom: 0;
}

.input-group {
    display: flex;
    gap: 8px;
}

.form-group input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.btn-generate {
    width: 50px;
    height: 50px;
    padding: 0;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-generate:hover {
    background: #667eea;
    border-color: #667eea;
    transform: rotate(180deg);
}

.totp-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 10px 0;
}

.totp-section {
    flex: 1;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.totp-value {
    color: white;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
}

.countdown {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
}

.btn-copy-totp {
    width: 50px;
    height: 50px;
    padding: 0;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-copy-totp:hover {
    background: #5568d3;
    transform: scale(1.1);
}

#otpauthUri {
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.btn-copy-uri {
    width: 50px;
    height: 50px;
    padding: 0;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-copy-uri:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.info p {
    margin-bottom: 8px;
}

.info p:last-child {
    margin-bottom: 0;
}

.info strong {
    color: #333;
}

.info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.info a:hover {
    text-decoration: underline;
}

.qr-section {
    margin-top: 30px;
    text-align: center;
}

.qr-section label {
    display: block;
    margin-bottom: 15px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

#qrCode {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        margin: 10px auto;
        padding: 20px;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .left-column {
        order: 1;
    }

    .right-column {
        order: 2;
        padding: 15px;
    }

    .right-column h2 {
        font-size: 18px;
    }

    .right-column h3 {
        font-size: 15px;
    }

    .totp-value {
        font-size: 28px;
        letter-spacing: 3px;
    }

    #qrCode {
        max-width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    .totp-value {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 14px;
    }

    .btn-generate,
    .btn-copy-totp,
    .btn-copy-uri {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

