/* ================================
   RCCG DCE Modular Portal Styles
   ================================ */
:root {
  --blue: #002060;
  --gold: #d4af37;
  --light-bg: #f4f6f8;
  --success: #0a6000;
  --danger: #a00000;
  --radius: 10px;
  --transition: all 0.3s ease;
  font-family: 'Inter', Arial, sans-serif;
}

body {
  margin: 0;
  background: var(--light-bg);
  color: #222;
  font-family: 'Inter', Arial, sans-serif;
}

/* ===== Header ===== */
header {
  background: var(--blue);
  color: white;
  text-align: center;
  padding: 20px;
  position: relative;
}
header img {
  height: 60px;
  display: block;
  margin: 0 auto 8px;
}
.header-actions {
  position: absolute;
  right: 15px;
  top: 15px;
}
.header-actions .btn {
  background: var(--gold);
  color: black;
  margin-left: 6px;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
}
.header-actions .btn:hover {
  background: white;
}

/* ===== Containers & Cards ===== */
.container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 15px;
}
.card {
  background: white;
  border-radius: var(--radius);
  padding: 20px 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card h3 {
  color: var(--blue);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 5px;
  margin-bottom: 10px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--gold);
  color: black;
}

/* ===== Notices & Badges ===== */
.notice {
  padding: 12px 15px;
  border-left: 6px solid var(--blue);
  background: #eef3ff;
  margin-bottom: 15px;
  border-radius: 6px;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: white;
  text-transform: uppercase;
}
.badge.pending { background: #999; }
.badge.approved { background: var(--success); }
.badge.rejected { background: var(--danger); }
.badge.paid { background: var(--success); }

/* ===== Tables ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
.table th {
  background: var(--blue);
  color: white;
}
.table tr:nth-child(even) {
  background: #f9f9f9;
}

/* ===== Forms ===== */
form input, form select, form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}
form label {
  font-weight: bold;
  color: var(--blue);
}
form button {
  width: 100%;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}
form button:hover {
  background: var(--gold);
  color: black;
}
.file-input {
  border: 1px dashed #aaa;
  padding: 8px;
}

/* ===== Grid Layouts ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
@media(max-width:768px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  font-size: 14px;
  color: #555;
  padding: 15px 10px 25px;
  background: #fff;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

/* ===== Responsive Tweaks ===== */
@media(max-width:600px) {
  header h2 {
    font-size: 18px;
  }
  .btn {
    font-size: 13px;
    padding: 8px 12px;
  }
}
