@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Keep original Monda for legacy just in case */
@font-face {
  font-display: swap; 
  font-family: 'Monda';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/monda-v16-latin-regular.woff2') format('woff2'); 
}
@font-face {
  font-display: swap; 
  font-family: 'Monda';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/monda-v16-latin-700.woff2') format('woff2'); 
}

/* Variables */
:root {
  --primary-blue: #003366; /* Deep Navy Blue */
  --accent-blue: #4A90E2;  /* Soft Muted Sky Blue */
  --bg-light: #F5F7FA;
  --text-main: #333333;
  --text-muted: #666666;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
}

/* Global */
*, ::before, ::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
}

html {
  color: var(--text-main);
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-blue);
  font-weight: 500;
  line-height: 1.4;
  margin-top: 16px;
  margin-bottom: 16px;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 22px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: var(--accent-blue);
  font-size: 14px; 
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-blue);
}

/* Layout */
.content-section {
  padding: 40px 20px;
}

.content-section-single {
  min-height: calc(100vh - 120px);
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.content-container-narrow {
  max-width: 600px;
}

.content-title {
  margin-bottom: 24px;
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 10px;
  display: inline-block;
}

/* Header */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 40px;
}

.site-header-left {
  display: flex;
  align-items: center;
}

.site-header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-header-brand img {
  display: inline-block;
  height: 40px;
  margin-right: 15px;
}

.site-header-item {
  color: var(--text-main);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.site-header-item a {
  color: var(--text-main);
  font-weight: 500;
}

.site-header-item:hover, .site-header-item a:hover {
  color: var(--accent-blue);
  background-color: rgba(0, 163, 224, 0.05);
}

/* Dashboard Cards (New) */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.dashboard-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-blue);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  border-left-color: var(--accent-blue);
}

.dashboard-card a {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-blue);
  flex-grow: 1;
}

/* Status Indicators */
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 14px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-left: 10px;
}

.count-date-complete {
  background-color: #10b981; /* Green */
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.count-date-not-complete {
  background-color: #ef4444; /* Red */
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* Tables */
table {
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  table-layout: fixed;
  width: 100%;
  margin-bottom: 20px;
}

table, th, td {
  border: 1px solid var(--border-color);
  padding: 12px;
}

th {
  background-color: #E2E8F0;
  color: var(--primary-blue);
  font-weight: 600;
}

thead th {
  background-color: #CBD5E1;
}

tbody th {
  background-color: #F1F5F9;
  font-weight: 500;
}

table tr:nth-child(even) {
  background-color: #f8fafc;
}

table tr:hover {
  background-color: #f1f5f9;
}

/* Legacy Grids */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  padding: 10px;
}

/* Buttons */
.button {
  background-color: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  padding: 10px 16px;
  transition: all 0.3s;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button a {
  color: white;
}

.button a:hover {
  color: white;
}

.button:hover {
  background-color: #002244;
}

.button-primary { background-color: #7BA4D3; }
.button-primary:hover { background-color: #5b87bb; }

.button-red { background-color: #E57373; }
.button-red:hover { background-color: #d35a5a; }

.button-green { background-color: #81C784; }
.button-green:hover { background-color: #64ad67; }

/* Forms */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--primary-blue);
}

input[type='text'],
input[type='email'],
input[type='password'],
textarea,
select {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  max-width: 400px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s;
  background-color: #fff;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.1);
}

/* Footer */
.site-footer {
  background-color: var(--primary-blue);
  color: rgba(255,255,255,0.8);
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}

.site-footer-copyright {
  font-size: 13px;
}
