/* Code editor styling */
.tab-content textarea[name="content_html"], 
.tab-content textarea[name="content_css"] {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    resize: vertical;
    min-height: 400px;
}

.tab-content textarea[name="content_html"]:focus, 
.tab-content textarea[name="content_css"]:focus {
    background-color: #ffffff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Tab content spacing */
.tab-content {
    padding-top: 1rem;
}

/* AI tab styling */
#ai .display-1 {
    font-size: 4rem;
}

/* Make sure code editors have proper spacing */
.tab-pane#code .row .col-md-6 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (max-width: 767.98px) {
    .tab-pane#code .row .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Auth page styling */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: #1f2937;
    font-weight: 600;
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.auth-form .form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.auth-form .form-control {
    border-radius: 8px;
    border: 1.5px solid #d1d5db;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.auth-form .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-form .form-control:invalid {
    border-color: #ef4444;
}

.auth-form .form-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    transition: all 0.15s ease-in-out;
}

.auth-form .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px -2px rgba(59, 130, 246, 0.3);
}

.auth-form .btn-primary:active {
    transform: translateY(0);
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.auth-links a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-links a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.auth-form .form-check {
    margin: 1rem 0;
}

.auth-form .form-check-input {
    margin-top: 0.125rem;
}

.auth-form .form-check-label {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.4;
}

.auth-form .form-check-label a {
    color: #3b82f6;
    text-decoration: none;
}

.auth-form .form-check-label a:hover {
    text-decoration: underline;
}

/* Turnstile widget styling */
.cf-turnstile {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

/* Error and success message styling for auth pages */
.auth-container + .alert {
    max-width: 400px;
    margin: 1rem auto;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-container {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
}