/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Condensed:wght@400;700&display=swap');

:root {
    --primary-color: #0f172a;
    --secondary-color: #334155;
    --accent-color: #b02a37;
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --border-color: #cbd5e1;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --font-sans: 'Inter', sans-serif;
    --font-condensed: 'Roboto Condensed', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    background-color: var(--bg-color);
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

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

.dashboard-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-condensed);
    text-transform: uppercase;
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.document-card {
    background: var(--card-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.document-card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.document-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--font-condensed);
    text-transform: uppercase;
}

.document-card-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    flex-grow: 1;
}

/* Document Portal Universal Styles (A4 Size) */
.portal-container {
    padding: 2rem;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.a4-document {
    background: white;
    width: 210mm;
    min-height: 297mm;
    padding: 20mm;
    box-shadow: var(--shadow-lg);
    margin-bottom: 80px; /* Space for action bar */
    position: relative;
    color: #000;
    font-family: 'Arial', sans-serif; /* Fallback to standard web safe for PDF generation */
}

/* Action Bar */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
    z-index: 1000;
}

.action-bar-left, .action-bar-right {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
}

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

.btn-primary:hover {
    background: #90222c;
}

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

.btn-secondary:hover {
    background: var(--bg-color);
}

/* Utility classes for the A4 document styling itself to keep it neat */
.a4-document .header {
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.a4-document .company-logo {
    max-height: 60px;
}

.a4-document .doc-title {
    font-family: var(--font-condensed);
    font-size: 24pt;
    font-weight: 700;
    text-transform: uppercase;
    text-align: right;
    line-height: 1.1;
}

.a4-document .doc-subtitle {
    color: var(--accent-color);
    font-size: 10pt;
    text-align: right;
    font-weight: 600;
}

.a4-document .form-group {
    margin-bottom: 15px;
}

.a4-document .form-label {
    display: block;
    font-size: 8pt;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.a4-document .form-input {
    width: 100%;
    border: none;
    border-bottom: 1px dotted #888;
    padding: 5px 0;
    font-family: inherit;
    font-size: 10pt;
    background: transparent;
}

.a4-document .form-input:focus {
    outline: none;
    border-bottom: 2px solid #000;
}

.a4-document .section-title {
    background: #f1f5f9;
    padding: 8px 12px;
    font-family: var(--font-condensed);
    font-size: 12pt;
    font-weight: 700;
    text-transform: uppercase;
    border-left: 4px solid var(--accent-color);
    margin: 20px 0 10px 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .a4-document {
        width: 100%;
        min-height: auto;
        padding: 1rem;
    }
}

@media print {
    body {
        background: none;
    }
    .action-bar {
        display: none !important;
    }
    .portal-container {
        padding: 0;
    }
    .a4-document {
        box-shadow: none;
        margin: 0;
        width: 100%;
        padding: 0;
    }
}
