/* -------------------------------------------------------------
 * GF Proposta - Custom Styling & Design System
 * Modern Web UI (Dark/Light Glassmorphism) + Premium PDF Generator
 * ------------------------------------------------------------- */

/* Design Tokens */
:root {
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* Themes */
.dark-theme {
    --bg-app: #080b11;
    --bg-ambient-1: rgba(99, 102, 241, 0.12); /* Indigo glow */
    --bg-ambient-2: rgba(6, 182, 212, 0.12);  /* Cyan glow */
    
    --card-bg: rgba(17, 24, 39, 0.7);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-hover-border: rgba(99, 102, 241, 0.3);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-primary: #6366f1;
    --accent-primary-hover: #4f46e5;
    --accent-secondary: #06b6d4;
    
    --input-bg: rgba(15, 23, 42, 0.8);
    --input-border: rgba(255, 255, 255, 0.08);
    --input-focus-border: #6366f1;
    --input-focus-glow: rgba(99, 102, 241, 0.2);
    
    --success: #10b981;
    --danger: #ef4444;
}

.light-theme {
    --bg-app: #f1f5f9;
    --bg-ambient-1: rgba(99, 102, 241, 0.06);
    --bg-ambient-2: rgba(6, 182, 212, 0.06);
    
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.06);
    --card-hover-border: rgba(99, 102, 241, 0.25);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --accent-primary: #4f46e5;
    --accent-primary-hover: #4338ca;
    --accent-secondary: #0891b2;
    
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-border: rgba(0, 0, 0, 0.08);
    --input-focus-border: #4f46e5;
    --input-focus-glow: rgba(79, 70, 229, 0.15);
    
    --success: #059669;
    --danger: #dc2626;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-app);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ambient glows */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background-color: var(--bg-ambient-1);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background-color: var(--bg-ambient-2);
}

/* Main Container */
.app-container {
    width: 100%;
    max-width: 1400px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 100vh;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 16px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-md);
    background-color: var(--accent-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.logo-icon i {
    width: 24px;
    height: 24px;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text h1 span {
    color: var(--accent-secondary);
}

.logo-text p {
    font-size: 11px;
    color: var(--text-muted);
}

.logo-text p a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.logo-text p a:hover {
    color: var(--accent-primary);
}

/* Buttons */
.btn-icon {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    border-color: var(--card-hover-border);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-icon i {
    width: 18px;
    height: 18px;
}

/* Toggle Sun/Moon classes */
.sun-icon { display: block; }
.moon-icon { display: none; }

.dark-theme .sun-icon { display: none; }
.dark-theme .moon-icon { display: block; }

/* Workspace Grid */
.workspace-grid {
    display: grid;
    grid-template-columns: 550px 1fr;
    gap: 24px;
    align-items: start;
}

/* Editor Section */
.editor-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.editor-card, .action-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Tab buttons */
.editor-tabs {
    display: flex;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 20px;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.tab-btn.active {
    background-color: var(--accent-primary);
    color: white;
}

.tab-btn i {
    width: 14px;
    height: 14px;
}

/* Tab Contents */
.tab-content {
    display: none;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: flex;
}

.tab-content h3 {
    font-size: 16px;
    font-weight: 700;
}

.tab-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: -8px;
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-row {
    display: flex;
    gap: 12px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, textarea, select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-md);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: var(--transition-fast);
    font-family: var(--font-sans);
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 2px var(--input-focus-glow);
}

textarea {
    resize: vertical;
}

/* Color dot palette */
.color-palette {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.color-dot:hover {
    transform: scale(1.15);
}

.color-dot.active {
    border-color: var(--text-primary);
    transform: scale(1.15);
}

/* Standard Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--card-hover-border);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.workspace-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.workspace-actions button {
    flex: 1;
}

/* Items List Editor */
.item-entry-form {
    background: rgba(0, 0, 0, 0.1);
    padding: 16px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.added-items-list {
    margin-top: 12px;
}

.added-items-list h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

th, td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--card-border);
}

th {
    background-color: rgba(255, 255, 255, 0.02);
    font-weight: 700;
    color: var(--text-muted);
}

td {
    color: var(--text-secondary);
}

tr:last-child td {
    border-bottom: none;
}

.btn-delete-item {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-delete-item:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.btn-delete-item i {
    width: 14px;
    height: 14px;
}

/* Preview Section */
.preview-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.preview-indicator {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-indicator i {
    width: 16px;
    height: 16px;
}

/* Paper Mock Sheet */
.paper-mock {
    --doc-accent: #6366f1;
    background-color: white;
    color: #1e293b;
    width: 100%;
    min-height: 1050px;
    padding: 50px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.5;
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 3px solid var(--doc-accent);
    padding-bottom: 16px;
    transition: border-color 0.3s ease;
}

.doc-logo-title h1 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.doc-logo-title span.doc-badge {
    display: inline-block;
    background-color: var(--doc-accent);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    margin-top: 6px;
    transition: background-color 0.3s ease;
}

.doc-metadata {
    text-align: right;
    font-size: 12px;
    color: #475569;
}

.doc-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.party-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #475569;
}

.party-col strong {
    color: #0f172a;
    font-size: 13px;
}

.party-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--doc-accent);
    letter-spacing: 1px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

/* Doc Table */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.doc-table th {
    background-color: #f8fafc;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    padding: 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.doc-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.doc-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 16px;
    gap: 6px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    width: 240px;
    font-size: 12px;
    color: #475569;
}

.summary-row.total {
    border-top: 2px solid #e2e8f0;
    padding-top: 8px;
    font-size: 16px;
    font-weight: 800;
    color: var(--doc-accent);
    transition: color 0.3s ease;
}

/* Doc Conditions */
.doc-conditions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #f8fafc;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--doc-accent);
    transition: border-color 0.3s ease;
}

.condition-item {
    font-size: 12px;
    color: #334155;
}

.condition-item strong {
    color: #0f172a;
}

#doc-cond-obs {
    margin-top: 4px;
    font-size: 11px;
    color: #64748b;
    white-space: pre-wrap;
}

/* Doc Signatures */
.doc-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: auto;
    padding-top: 50px;
}

.sig-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #64748b;
}

.sig-line {
    border-top: 1px solid #cbd5e1;
    width: 100%;
    margin-bottom: 8px;
}

.sig-box strong, .sig-box span {
    color: #0f172a;
    font-weight: 600;
    text-align: center;
}

/* Recent Section / History Grid & Cards */
.recent-section {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.4s ease;
}

.recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
    width: 100%;
}

.recent-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-title svg, .recent-title i {
    width: 20px;
    height: 20px;
    color: var(--accent-secondary);
}

.recent-title h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-clear-link {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.btn-clear-link:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    width: 100%;
}

.recent-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.recent-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.08);
}

.recent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    opacity: 0.8;
}

.recent-card-nf {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-card-num {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.recent-card-date {
    font-size: 11px;
    color: var(--text-muted);
}

.recent-card-emit {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Disclaimer & Criteria Panel */
.disclaimer-panel {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.panel-header i {
    width: 22px;
    height: 22px;
    color: var(--accent-secondary);
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.panel-body p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.criteria-item {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 16px;
    border-radius: var(--border-radius-md);
}

.criteria-icon {
    color: var(--accent-primary);
    display: flex;
    align-items: flex-start;
}

.criteria-icon i {
    width: 20px;
    height: 20px;
}

.criteria-text h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.criteria-text p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.legal-notice {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 14px 18px;
    border-radius: var(--border-radius-md);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Settings Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-modal-card {
    background-color: var(--bg-app);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    width: 480px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: zoomIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--card-border);
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title-wrapper i {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.modal-title-wrapper h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.modal-close-btn i {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--card-border);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--card-bg);
    border: 1px solid var(--accent-primary);
    border-radius: var(--border-radius-md);
    padding: 12px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.toast-content i {
    color: var(--accent-primary);
    width: 18px;
    height: 18px;
}

/* App Footer */
.app-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--card-border);
    margin-top: auto;
    font-size: 12px;
    color: var(--text-muted);
}

.app-footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.app-footer a:hover {
    color: var(--accent-primary);
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Light Theme overrides for scrollbar */
.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.light-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Firefox scrollbar support */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.light-theme {
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

/* Utility visibility classes */
.hidden {
    display: none !important;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
    
    .editor-section {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .app-container {
        padding: 12px;
    }
    
    .logo-area {
        gap: 8px;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .editor-tabs {
        gap: 4px;
    }
    
    .tab-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .form-group-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .paper-mock {
        padding: 24px;
    }
    
    .doc-parties {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .doc-signatures {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Print styles */
@media print {
    @page {
        margin: 1.5cm;
    }

    body {
        background-color: white !important;
        color: #1e293b !important;
        font-size: 11pt;
    }
    
    .ambient-glow,
    .app-header,
    .editor-section,
    .preview-header-bar,
    .recent-section,
    #about-section,
    .app-footer,
    .modal-overlay,
    .toast {
        display: none !important;
    }
    
    .app-container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .workspace-grid {
        display: block !important;
        width: 100% !important;
    }
    
    .preview-section {
        width: 100% !important;
    }
    
    .paper-mock {
        box-shadow: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        min-height: auto !important;
        width: 100% !important;
        background: transparent !important;
    }
}
