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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

.tooltip {
    cursor: help;
    opacity: 0.7;
    font-size: 14px;
}

input[type="text"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[readonly] {
    background: #f5f5f5;
    cursor: default;
}

small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 13px;
}

button,
.btn-primary,
.btn-secondary,
.btn-copy {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary,
button[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    width: 100%;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-copy {
    background: #4CAF50;
    color: white;
    padding: 10px 16px;
    font-size: 14px;
    margin-left: 10px;
}

.btn-copy:hover {
    background: #45a049;
}

.btn-toggle {
    background: #2196F3;
    color: white;
    padding: 10px 16px;
    font-size: 14px;
    margin-left: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-toggle:hover {
    background: #0b7dda;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.info-box.warning-color {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.info-box p {
    color: #1565C0;
    font-size: 14px;
    margin-bottom: 10px;
}

.info-box.warning-color p {
    color: #e65100;
}

.info-box ol,
.info-box ul {
    margin-left: 20px;
    color: #1565C0;
    font-size: 14px;
}

.info-box.warning-color ol,
.info-box.warning-color ul {
    color: #e65100;
}

.info-box li {
    margin-bottom: 8px;
}

.warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 20px;
    margin-top: 25px;
    border-radius: 4px;
}

.warning-box strong {
    color: #e65100;
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
}

.warning-box p,
.warning-box ul {
    color: #e65100;
    font-size: 14px;
}

.warning-box ul {
    margin-left: 20px;
    margin-top: 10px;
}

.warning-box li {
    margin-bottom: 8px;
}

.success-box {
    background: #e8f5e9;
    border: 2px solid #4CAF50;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.success-box h3 {
    color: #2e7d32;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.success-box p {
    color: #388e3c;
    font-size: 15px;
}

.error-state {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.error-state h3 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.error-state p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.result {
    margin-top: 30px;
}

.result-group {
    margin-bottom: 25px;
}

.copy-box {
    display: flex;
    align-items: center;
}

.copy-box input {
    flex: 1;
    margin-bottom: 0;
}

.password-display {
    display: flex;
    align-items: center;
}

.password-display input {
    flex: 1;
    margin-bottom: 0;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.expires-info {
    color: #666;
    font-size: 13px;
    margin-top: 8px;
    display: block;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: #666;
    font-size: 16px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.action-buttons > * {
    flex: 1;
}

.security-note {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.security-note h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.security-note p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.security-note ul {
    list-style: none;
    margin-top: 15px;
}

.security-note li {
    color: #555;
    font-size: 14px;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.security-note li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.security-note strong {
    color: #333;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .card {
        padding: 25px;
    }

    .copy-box,
    .password-display {
        flex-direction: column;
    }

    .btn-copy,
    .btn-toggle {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result {
    animation: fadeIn 0.5s ease-out;
}

.copied {
    background: #4CAF50 !important;
    color: white !important;
}

.copied::after {
    content: " ✓";
}

