/* 
 * eData Specific Mockup Design System 
 * Fonts: Google Inter
 * Theme: Turquoise (#00B4D8)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Colors matching user request */
  --uitm-turquoise: #008080; /* Darker Turquoise */
  --uitm-turquoise-dark: #004D4D; /* Darker turquoise for depth/buttons */
  --uitm-turquoise-gradient: #009999;
  
  --uitm-dark: #1F1F1F; /* Black/Dark gray for header */
  --uitm-gold: #FDD835; /* Yellow/Gold for subheader text */
  --btn-turquoise: #006666; /* Slightly darker than bright turquoise for buttons */
  
  /* Background & Surface */
  --bg-input: #F3F4F6;
  --surface-solid: #FFFFFF;
  
  /* Text */
  --text-main: #333333;
  --text-muted: #666666;

  /* Layout */
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --container-width: 1200px;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--uitm-turquoise-dark);
  /* The background image with a turquoise overlay */
  background-image: linear-gradient(rgba(0, 102, 102, 0.85), rgba(0, 77, 77, 0.85)), url('../images/b_pentadbiran.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Custom Split Header */
.custom-header {
  display: flex;
  position: relative;
  background: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  z-index: 10;
}

.header-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #004D4D 0%, #008080 100%);
}

.header-brand {
  background-color: transparent;
  padding: 0.5rem 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-brand h1 {
  color: white;
  margin: 0;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-shadow: 
    1px 1px 0 #000,
    2px 2px 0 #000,
    3px 3px 0 #000,
    4px 4px 0 #000,
    5px 5px 0 #000,
    6px 6px 8px rgba(0,0,0,0.6);
}

.header-sub {
  background-color: rgba(0, 0, 0, 0.15);
  padding: 0.3rem 3rem;
}

.header-sub p {
  color: #FDE047;
  margin: 0;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  text-shadow: 
    1px 1px 0 #000,
    2px 2px 0 #000,
    3px 3px 0 #000,
    4px 4px 5px rgba(0,0,0,0.6);
}

.header-right {
  position: relative;
  background-color: white;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 350px;
  z-index: 2;
}

.slant-decor {
  position: absolute;
  top: -10%;
  left: -45px;
  width: 85px;
  height: 120%;
  background-color: white;
  transform: skewX(-18deg);
  border-left: 4px solid #FDE047;
  box-shadow: -5px 0 15px rgba(0,0,0,0.15);
}

.header-right img {
  height: 95px;
  object-fit: contain;
  position: relative;
  z-index: 3;
  transform: scale(1.85) translateY(4px);
  transform-origin: center;
}

/* Layout Grid */
.container {
  width: 95%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.main-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 0;
  flex: 1;
  align-items: stretch;
}

.left-column {
  flex: 1;
  min-width: 260px;
  max-width: 320px;
  display: flex;
  align-items: flex-start;
}

.right-column {
  flex: 2.5;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.75rem;
}

/* Solid Cards */
.solid-card {
  background: var(--surface-solid);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Login Card Specifics */
.login-card {
  flex: 1;
  padding: 1.5rem; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.login-logo {
  height: 85px;
  margin-bottom: 1rem;
}

.login-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.login-form {
  width: 100%;
}

.login-form .form-group {
  margin-bottom: 0.8rem;
  text-align: left;
}

.login-form .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  display: block;
}

.login-form .form-control {
  background-color: #F8F9FA;
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius-sm);
  padding: 0.4rem 0.8rem;
  width: 100%;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
}

.login-form .form-control:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--uitm-turquoise);
}

.login-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  display: block;
}

.btn-login {
  background-color: var(--btn-turquoise);
  color: white;
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-login:hover {
  background-color: var(--uitm-turquoise-dark);
}

.login-links {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.login-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.login-links a:hover {
  color: var(--uitm-turquoise-dark);
  text-decoration: underline;
}

.info-card {
  padding: 1.5rem 2rem;
  position: relative;
}

.info-header {
  text-align: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--bg-input);
  padding-bottom: 1rem;
}

.info-header h2 {
  color: var(--uitm-turquoise-dark);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-content {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

.info-content > p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.system-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.system-item {
  background: var(--bg-input);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  border-left: 4px solid var(--uitm-turquoise);
  transition: transform 0.2s, box-shadow 0.2s;
}

.system-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  background: white;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--uitm-turquoise);
}

.system-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text-main);
}

.system-icon {
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--uitm-turquoise-dark);
  font-size: 1.2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.system-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--uitm-turquoise-dark);
  margin-bottom: 0.2rem;
}

.system-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.info-content .disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  border-top: 1px solid #E5E7EB;
  padding-top: 0.2rem;
}

/* Footer */
.modern-footer {
  text-align: center;
  padding: 1rem 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .header-brand::after, .header-brand::before {
    display: none;
  }
  .header-top {
    flex-direction: column;
  }
  .header-logo {
    justify-content: center;
    padding: 1rem;
  }
  .header-brand {
    justify-content: center;
  }
  .main-wrapper {
    flex-direction: column;
    padding: 1.5rem 0;
  }
  .left-column, .right-column {
    max-width: 100%;
    width: 100%;
  }
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  border-left: 4px solid var(--uitm-turquoise);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  font-size: 2rem;
  color: var(--uitm-turquoise-dark);
  opacity: 0.8;
}

.stat-info h3 {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-info .number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.1;
}

.action-card {
  background: white;
  padding: 1.5rem 1rem;
  border-radius: var(--border-radius-sm);
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 128, 128, 0.15);
  border-color: var(--uitm-turquoise);
}

.action-card i {
  font-size: 2.2rem;
  color: var(--uitm-turquoise);
  margin-bottom: 0.2rem;
  transition: transform 0.2s ease;
}

.action-card:hover i {
  transform: scale(1.1);
  color: var(--uitm-turquoise-dark);
}

.action-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.action-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Admin Navbar */
.admin-navbar-sub {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.section-title {
  font-size: 1.2rem; 
  color: white; 
  margin-bottom: 1rem; 
  border-bottom: 2px solid rgba(255,255,255,0.2); 
  padding-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.admin-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--uitm-turquoise-dark);
  text-decoration: none;
}

.admin-nav-brand img {
  height: 35px;
}

.admin-nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: flex-end;
}

.admin-nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-nav-links a:hover, .admin-nav-links a.active {
  color: var(--uitm-gold);
}

.admin-nav-links .btn-logout {
  background: #fee2e2;
  color: #dc2626;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}
.admin-nav-links .btn-logout:hover {
  background: #f87171;
  color: white;
}

/* Page Layout for Admin */
.admin-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* background: #f4f6f9; Removed to show the beautiful campus background like user side */
}

.admin-content {
  flex: 1;
  padding: 1rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--uitm-dark);
  margin: 0;
}

/* Modern Tables & Search */
.table-container {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  overflow: hidden;
}

.table-toolbar {
  padding: 0.8rem 1rem;
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-box {
  position: relative;
  width: 250px;
  max-width: 100%;
}

.search-box i {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 0.4rem 0.8rem 0.4rem 2rem;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--uitm-turquoise);
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.filter-select {
  padding: 0.4rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-main);
  background: white;
  cursor: pointer;
  min-width: 180px;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
}

.modern-table th {
  background: #f8fafc;
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #eee;
}

.modern-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #eee;
  color: var(--text-main);
  font-size: 0.85rem;
  vertical-align: middle;
}

.modern-table tbody tr {
  transition: background-color 0.2s;
}

.modern-table tbody tr:hover {
  background-color: #f0fdfa;
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--uitm-turquoise);
  cursor: pointer;
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 0.2s, color 0.2s;
}

.action-btn:hover {
  transform: scale(1.2);
  color: var(--uitm-turquoise-dark);
}
