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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
    min-height: 100vh;
    color: #f8fafc;
    padding: 20px;
}

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

.header {
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 10px;
}

.description {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.count-info {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 10px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.card-icon {
    font-size: 1.5rem;
}

.card-header h2 {
    color: #f8fafc;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-body {
    padding: 24px;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.required {
    color: #ef4444;
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

input::placeholder,
textarea::placeholder {
    color: #64748b;
}

select option {
    color: #0f172a;
    background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.error {
    display: block;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
}

.error-summary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.error-summary p {
    color: #fca5a5;
    font-weight: 600;
    margin-bottom: 8px;
}

.error-summary ul {
    list-style: none;
    padding: 0;
}

.error-summary li {
    color: #fca5a5;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.checkbox-group {
    margin-bottom: 16px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: #3b82f6;
}

.optional {
    color: #94a3b8;
}

.note {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #475569;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 32px));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: toast-in 0.25s ease-out;
}

.toast span {
    flex: 1;
}

.toast-success {
    border-left: 4px solid #22c55e;
}

.toast-warning {
    border-left: 4px solid #fbbf24;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.btn-outline {
    background: transparent;
    color: #e2e8f0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost {
    background: transparent;
    color: #94a3b8;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.success-message {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.success-message h2 {
    font-size: 1.8rem;
    color: #f8fafc;
    margin-bottom: 10px;
}

.success-message p {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.success-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.success-details p {
    color: #e2e8f0;
    margin-bottom: 8px;
}

.warning {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 0.9rem;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.success-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .description {
        font-size: 0.85rem;
    }

    .card-header {
        padding: 14px 16px;
    }

    .card-header h2 {
        font-size: 1rem;
    }

    .card-body {
        padding: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    input[type="text"],
    input[type="email"],
    input[type="url"],
    select,
    textarea {
        font-size: 16px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn,
    .btn-large {
        width: 100%;
        padding: 14px 16px;
    }

    .success-message {
        padding: 24px 16px;
    }

    .success-message h2 {
        font-size: 1.4rem;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
    }
}
