/* ========================================
   TYPOGRAPHY SYSTEM
   Centralized font control for entire system
   ======================================== */

:root {
    /* Font Families */
   /* --font-primary: 'Times New Roman', Times, serif;  */	
    --font-primary: 'Arial', Helvetica, sans-serif;
 
    --font-secondary: Arial, Helvetica, sans-serif;
    --font-heading: 'Times New Roman', Times, serif;
    --font-body: 'Times New Roman', Times, serif;
    --font-monospace: 'Courier New', monospace;
    
    /* Font Sizes - Base Scale (rem = relative to browser default) */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-md: 1.125rem;     /* 18px */
    --text-lg: 1.25rem;      /* 20px */
    --text-xl: 1.5rem;       /* 24px */
    --text-2xl: 1.875rem;    /* 30px */
    --text-3xl: 2.25rem;     /* 36px */
    --text-4xl: 3rem;        /* 48px */
    
    /* Semantic Font Sizes */
    --font-size-body: var(--text-base);
    --font-size-small: var(--text-sm);
    --font-size-tiny: var(--text-xs);
    
    --font-size-h1: var(--text-3xl);
    --font-size-h2: var(--text-2xl);
    --font-size-h3: var(--text-xl);
    --font-size-h4: var(--text-lg);
    --font-size-h5: var(--text-base);
    --font-size-h6: var(--text-sm);
    
    --font-size-nav: var(--text-md);
    --font-size-button: var(--text-md);
    --font-size-input: var(--text-base);
    
    --font-size-table-header: var(--text-sm);
    --font-size-table-cell: var(--text-sm);
    
    --font-size-card-title: var(--text-lg);
    --font-size-card-body: var(--text-base);
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Line Heights */
    --line-none: 1;
    --line-tight: 1.2;
    --line-normal: 1.5;
    --line-loose: 1.8;
    
    /* Letter Spacing */
    --letter-normal: 0;
    --letter-wide: 0.5px;
    --letter-wider: 1px;
}

/* ===== BASE ELEMENTS ===== */
* {
    font-family: var(--font-primary);
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    line-height: var(--line-normal);
    font-weight: var(--font-normal);
}

/* Headings */
h1, .h1 {
    font-size: var(--font-size-h1);
    font-weight: var(--font-bold);
    line-height: var(--line-tight);
    margin-bottom: 0.5em;
}

h2, .h2 {
    font-size: var(--font-size-h2);
    font-weight: var(--font-semibold);
    line-height: var(--line-tight);
    margin-bottom: 0.5em;
}

h3, .h3 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-semibold);
    line-height: var(--line-tight);
    margin-bottom: 0.5em;
}

h4, .h4 {
    font-size: var(--font-size-h4);
    font-weight: var(--font-medium);
    line-height: var(--line-normal);
}

h5, .h5 {
    font-size: var(--font-size-h5);
    font-weight: var(--font-medium);
}

h6, .h6 {
    font-size: var(--font-size-h6);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: var(--letter-wide);
}

/* Paragraphs */
p {
    font-size: var(--font-size-body);
    line-height: var(--line-normal);
    margin-bottom: 1rem;
}

/* Small text */
small, .small, .text-small, .stat-small, .footnote {
    font-size: var(--font-size-small);
    line-height: var(--line-normal);
}

.tiny {
    font-size: var(--font-size-tiny);
}

/* ===== COMMON COMPONENTS ===== */
/* Buttons */
.btn, button, .nav-btn, .menu-item {
    font-size: var(--font-size-button);
    font-weight: var(--font-medium);
    letter-spacing: var(--letter-normal);
}

.btn-small {
    font-size: var(--font-size-small);
}

.btn-large {
    font-size: var(--font-size-lg);
}

/* Forms */
label {
    font-size: var(--font-size-small);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: var(--letter-wide);
}

input, select, textarea, .form-control {
    font-size: var(--font-size-input);
    font-family: var(--font-primary);
}

::placeholder {
    font-size: var(--font-size-small);
    font-style: italic;
}


/* Form elements specific styling */
input, select, textarea, .form-control {
    font-family: var(--font-primary);
    font-size: var(--font-size-input);
    line-height: var(--line-normal);
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color 0.3s;
	color: #0000ff;  /* Dark blue - add this line */

}

input:focus, select:focus, textarea:focus {
    border-color: #00bcd4;
    outline: none;
}

/* Select dropdowns */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

/* Textareas */
textarea {
    resize: vertical;
    min-height: 100px;
}

/* Placeholder styling - you already have this */
::placeholder {
    font-size: var(--font-size-small);
    font-style: italic;
    color: #999;
}

/* Tables */
table th {
    font-size: var(--font-size-table-header);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--letter-wide);
}

table td {
    font-size: var(--font-size-table-cell);
}

/* Cards */
.card-title, .card-header h2, .card-header h3 {
    font-size: var(--font-size-card-title);
    font-weight: var(--font-bold);
}

.card-body, .card-text {
    font-size: var(--font-size-card-body);
}

/* Navigation */
.nav-menu, .sidebar-nav {
    font-size: var(--font-size-nav);
}

/* ===== UTILITY CLASSES ===== */
/* Font sizes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md { font-size: var(--text-md); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }

/* Font weights */
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

/* Line heights */
.line-tight { line-height: var(--line-tight); }
.line-normal { line-height: var(--line-normal); }
.line-loose { line-height: var(--line-loose); }

/* Text transforms */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* ===== BUTTON STYLES ===== */
.btn-outline {
    background: transparent;
    border: 2px solid #00bcd4;
    color: #00bcd4;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #00bcd4;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 188, 212, 0.3);
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== FORM ELEMENTS ===== */
.form-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    display: block;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

/* Letter spacing */
.letter-normal { letter-spacing: var(--letter-normal); }
.letter-wide { letter-spacing: var(--letter-wide); }
.letter-wider { letter-spacing: var(--letter-wider); }

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    :root {
        --font-size-h1: var(--text-2xl);
        --font-size-h2: var(--text-xl);
        --font-size-h3: var(--text-lg);
        --font-size-body: 0.9375rem;
        --font-size-nav: var(--text-base);
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-h1: var(--text-xl);
        --font-size-h2: var(--text-lg);
        --font-size-h3: var(--text-base);
        --font-size-body: 0.875rem;
        --font-size-table-header: var(--text-xs);
        --font-size-table-cell: var(--text-xs);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
}
