/* Clean UI - No animations, hover effects, or moving components */

/* Remove all transitions and animations */
* {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

/* Remove hover effects */
.btn:hover,
.card:hover,
.upload-area:hover,
*:hover {
    transform: none !important;
    box-shadow: inherit !important;
}

/* Ensure cards stay fixed */
.card {
    border: 1px solid #dee2e6;
    background: #ffffff;
    border-radius: 0.375rem;
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Modern SaaS Button Styles */
.btn {
    border-radius: 8px !important;
    transition: none !important;
    border: 1px solid transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.btn-primary {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
}

.btn-success {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}

.btn-outline-primary {
    background: white !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}

.btn-outline-secondary {
    background: white !important;
    border-color: #d1d5db !important;
    color: #6b7280 !important;
}

.btn:hover,
.btn:focus,
.btn:active {
    transform: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Modern card styles */
.card {
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.card-header {
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-radius: 12px 12px 0 0 !important;
}

/* Remove any moving effects */
.upload-area {
    transition: none !important;
}

.upload-area:hover {
    transform: none !important;
    background-color: inherit !important;
    border-color: inherit !important;
}

/* Force proper Bootstrap grid layout - wider spacing */
.row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -1rem !important;
    margin-left: -1rem !important;
    align-items: flex-start !important;
}

.col-4 {
    flex: 0 0 auto !important;
    width: 33.33% !important;
    padding-right: 1rem !important; /* Increased padding for more space */
    padding-left: 1rem !important;
    box-sizing: border-box !important;
}

.col-8 {
    flex: 0 0 auto !important;
    width: 66.67% !important;
    padding-right: 1rem !important; /* Increased padding for more space */
    padding-left: 1rem !important;
    box-sizing: border-box !important;
}

/* Ensure equal alignment */
.row.g-4 .col-4,
.row.g-4 .col-8 {
    align-self: flex-start !important;
}

/* Responsive behavior */
@media (max-width: 767.98px) {
    .col-4,
    .col-8 {
        width: 100% !important;
    }
}

/* Container spacing - wider layout */
.container-fluid {
    max-width: 1400px !important; /* Increased from 1200px to 1400px */
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Clean form elements */
.form-control {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

/* Modern SaaS Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #1f2937 !important;
}

/* Card headers - like Notion/Linear */
.card-header h5 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 !important;
    letter-spacing: -0.01em !important;
}

/* Section headers */
h6 {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 8px !important;
}

/* Body text */
p {
    font-size: 14px !important;
    color: #4b5563 !important;
    margin-bottom: 12px !important;
}

/* Small text */
.small, small, .form-text {
    font-size: 12px !important;
    color: #6b7280 !important;
}

/* Labels */
.form-label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
}

/* Button text */
.btn {
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
}

.btn-lg {
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
}

/* Modern color palette */
.text-primary {
    color: #3b82f6 !important;
}

.text-success {
    color: #10b981 !important;
}

.text-muted {
    color: #6b7280 !important;
}

/* Force equal height for both components */
.row.g-4 {
    display: flex !important;
    align-items: stretch !important;
}

.col-4 {
    display: flex !important;
    flex-direction: column !important;
}

.col-8 {
    display: flex !important;
    flex-direction: column !important;
}

.col-4 .card {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.col-8 .card {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* Override any conflicting card styles for equal height */
.row.g-4 .card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.card-body {
    flex: 1 !important;
}

/* Email editor card specific */
.col-md-6:has(#email-body) .card {
    min-height: 600px !important; /* Taller when editing email */
}

/* Email editor section spacing */
.mb-4:has(#email-subject),
.mb-4:has(#email-body) {
    margin-bottom: 24px !important;
}

/* Modern SaaS Spacing - consistent with Notion/Linear/Figma */
.container-fluid {
    padding-bottom: 32px !important; /* 2rem = 32px */
}

.p-4 {
    padding: 24px !important; /* More spacious like modern apps */
}

.py-3 {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

.py-4 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

.mb-4 {
    margin-bottom: 20px !important;
}

.mb-3 {
    margin-bottom: 16px !important;
}

.mb-2 {
    margin-bottom: 12px !important;
}

/* Modern card spacing - wider internal padding */
.card-header {
    padding: 20px 32px 16px 32px !important; /* Increased horizontal padding */
}

.card-body {
    padding: 32px !important; /* Increased from 24px to 32px */
}

/* Form spacing like modern SaaS */
.form-control {
    padding: 12px 16px !important;
    border-radius: 8px !important;
    border: 1px solid #d1d5db !important;
    font-size: 14px !important;
}

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

/* Email editor specific styles */
textarea.form-control {
    resize: vertical !important;
    min-height: 200px !important; /* Taller for better email editing */
}

#email-subject {
    width: 100% !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
}

#email-body {
    width: 100% !important;
    min-height: 298px !important; /* Reduced by 1px more for email content */
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif !important;
    padding: 12px !important;
}

/* Ensure footer spacing matches top spacing */
body {
    margin-bottom: 0 !important;
}

main {
    margin-bottom: 2rem !important;
}

/* Clean shadows */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}
