/* Neurology & Psychology Program - Custom Styles */

@page {
    size: 3.5in 8.5in;
    margin: 0;
}

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

:root {
    --primary: #7C3AED;
    --primary-rgb: 124, 58, 237;
    --secondary: #2563EB;
    --secondary-rgb: 37, 99, 235;
    --accent: #8B5CF6;
    --accent-rgb: 139, 92, 246;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F3F4F6;
    --bg-tertiary: #E5E7EB;
    --border-color: #E5E7EB;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-body);
    font-size: 8pt;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 400;
}

.drug-sheet {
    width: 3.5in;
    height: 8.5in;
    padding: 0.15in;
    padding-bottom: 0;
    background: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    
}

.drug-sheet::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: transparent;
    transform: rotate(45deg);
    pointer-events: none;
}

/* For screen preview */
@media screen {
    body {
        background: white;
        padding: 0;
    }
    
    .drug-sheet {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        margin: 0;
    }
}

/* Print styles */
@media print {
    body {
        margin: 0;
        padding: 0;
    }
    
    .drug-sheet {
        margin: 0;
        box-shadow: none;
        page-break-after: always;
    }
    
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Content styles */
#header-container {
    flex-shrink: 0;
    height: auto;
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    padding-bottom: 15px;
    min-height: 0;
}

.section {
    margin-bottom: 5px;
}

.section:last-child {
    margin-bottom: 0;
}

.section h2 {
    font-family: var(--font-display);
    font-size: 9.5pt;
    margin-bottom: 3px;
    color: var(--primary);
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 2px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 0;
    width: 30px;
    height: 1.5px;
    background: var(--primary);
}

/* Table styles */
.medication-table {
    width: 100%;
    font-size: 7pt;
    border-collapse: collapse;
}

.medication-table td {
    padding: 2px 4px;
    vertical-align: middle;
}

.medication-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
}

.medication-table tbody tr {
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
}

.medication-table tbody tr:last-child {
    border-bottom: none;
}

/* Header divider */
.header-divider {
    background: var(--primary);
}