/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --font-family: 'Poppins', sans-serif;
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    
    /* Light Theme */
    --bg-main: #f4f7fc;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #dee2e6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.dark-theme {
    --bg-main: #121212;
    --bg-sidebar: #1e1e1e;
    --bg-card: #2c2c2c;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #444;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
}

/* --- LAYOUT --- */
.app-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 240px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.sidebar-header {
    padding: 10px;
    font-size: 1.0rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav {
    list-style: none;
    padding: 10px 0;
    flex-grow: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.2s;
}

.nav-link i {
    width: 20px;
    margin-right: 15px;
    text-align: center;
}

.nav-link.active, .nav-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 0 30px 30px 0;
    margin-right: -1px;
}

.main-content {
    flex-grow: 1;
    padding: 0px;
    overflow-y: auto;
}

.sticky-header {
    position: sticky;
    top: 0;
    background-color: var(--bg-main);
    padding: 10px 0 20px 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- CARDS --- */
/* --- CARDS --- */
.card-container {
    display: none; /* Hidden by default */
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card-container.active {
    display: flex;
}
.card-container > .card {
  flex: 1 1 400px;
    max-width: 800%;
}



.card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.card.full-width {
    grid-column: 1 / -1;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* --- FORMS & INPUTS --- */
.form-grid, .output-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.input-group, .toggle-label {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

input[type="number"], input[type="text"], select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family);
    transition: all 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.toggle-label {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

/* --- OUTPUTS --- */
.output-grid div p {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}
.output-grid div.total p {
    color: var(--success-color);
}
.output-grid div h4 {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* --- TABLES --- */
.table-container {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
th {
    background-color: var(--bg-main);
    font-weight: 600;
}
.status-pass { background-color: rgba(40, 167, 69, 0.1); color: var(--success-color); }
.status-fail { background-color: rgba(220, 53, 69, 0.1); color: var(--danger-color); }
.status-uncertain { background-color: rgba(255, 193, 7, 0.1); color: var(--warning-color); }

/* --- HEADER CONTROLS --- */
.header-controls { display: flex; align-items: center; gap: 20px; }
.scenario-controls { display: flex; align-items: center; gap: 5px; }
.scenario-btn {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
}
.scenario-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}
button:hover { background-color: #0056b3; }

/* --- THEME SWITCHER --- */
.theme-switcher { display: flex; align-items: center; gap: 8px; }
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(24px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }


/* --- TREATMENT TRAIN --- */
.train-config { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.train-stage h4 { margin-bottom: 10px; font-size: 1rem; }
.train-stage label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

/* KPI Grid */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kpi-item h4 { font-size: 0.9rem; color: var(--text-secondary); font-weight: 400;}
.kpi-item p { font-size: 1.8rem; color: var(--primary-color); font-weight: 600;}







/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
    .sidebar { width: 80px; }
    .sidebar-nav span { display: none; }
    .nav-link i { margin-right: 0; }
    .nav-link { justify-content: left; }
}
/* Bold weight */
@font-face {
  font-family: 'Orbitron';
  src: url('src/Orbitron-Bold.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

/* Example usage */
span {
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;     
  font-size: 0.9rem;
  letter-spacing: 1px;
}




@media (max-width: 768px) {
    .app-container { flex-direction: column; }
    .sidebar {
        width: 100%;
        height: 60px;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .sidebar-header { display: none; }
    .sidebar-nav { display: flex; justify-content: space-around; }
    .nav-link { padding: 10px 5px; }
    .nav-link.active, .nav-link:hover { border-radius: 0; background-color: transparent; color: var(--primary-color); }
    .main-content { padding: 15px; }
    .sticky-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    h1 { font-size: 1.5rem; }
    .card-container { grid-template-columns: 1fr; }
}



/* Load Rajdhani font */
@font-face {
  font-family: 'Rajdhani';
  src: url('src/Rajdhani.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Load Orbitron font */
@font-face {
  font-family: 'Orbitron';
  src: url('src/Orbitron.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Example style for h1 */
h1 {
  font-size: 2rem;
  font-weight: 600;
  font-family: 'Orbitron', 'Rajdhani', sans-serif; /* fallback order */
}


/* Example style for sticky-header */
.sticky-header {
   font-weight: 600;
  font-family: 'Orbitron', 'Rajdhani', sans-serif; /* fallback order */
}







@font-face {
  font-family: 'Orbitron';
  src: url('src/Orbitron.ttf');
  font-weight: 100 900;  /* covers full range */
  font-style: normal;
}
.h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;      /* pick weight between 100–900 */
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-decoration: none;
  color: #333;           /* default text color */
  transition: color 0.3s ease;
}





@font-face {
  font-family: 'Orbitron';
  src: url('src/EduNSWACTCursive-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;  /* covers full range */
  font-style: normal;
}
.footer-link {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;      /* pick weight between 100–900 */
  font-size: 0.5rem;
  letter-spacing: 1px;
  text-decoration: none;
   background: linear-gradient(90deg, #00ccff, #007BFF, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent          /* default text color */
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #e74c3c;        /* hover effect to match the heart */
}


a.btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 12px rgba(0,112,186,0.6);
}








#google_translate_element {
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: right;
  }

  .goog-te-combo {
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 4px;
    background-color: #f9f9f9;
  }