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

:root {
  --bg-deep: #f1f5f9;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --ro-blue: #2563eb;
  --ro-blue-hover: #1d4ed8;
  --ro-blue-subtle: #eff6ff;
  --ro-gold: #d97706;
  --ro-gold-hover: #b45309;
  --ro-gold-light: #f59e0b;
  --ro-gold-subtle: #fef3c7;
  --ro-green: #10b981;
  --ro-green-subtle: #ecfdf5;
  --ro-red: #ef4444;
  --ro-red-subtle: #fef2f2;
  --ro-purple: #7c3aed;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;
  --border-focus: #3b82f6;
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --danger: #ef4444;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background-color: #f1f5f9;
  background-image:
    linear-gradient(180deg, rgba(248, 250, 252, 0.82) 0%, rgba(241, 245, 249, 0.90) 450px, rgba(241, 245, 249, 0.95) 100%),
    url('../img/ro_scenery_bg.jpg');
  background-attachment: fixed;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  margin: 0;
  line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.03em;
}

h1 { font-size: 1.65rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }

a {
  color: var(--ro-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--ro-blue-hover);
}

/* ============ NAVBAR ============ */
.navbar {
  position: relative;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--ro-gold-light);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.navbar-brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover {
  color: var(--ro-blue) !important;
  background: var(--ro-blue-subtle);
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 13rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-item {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
}
.nav-dropdown-item:hover {
  background: var(--ro-blue-subtle);
  color: var(--ro-blue);
  padding-left: 1rem;
}

/* ============ SIDEBAR ============ */
.sidebar {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s ease;
}
.sidebar:hover {
  box-shadow: var(--shadow-hover);
}
.sidebar-header {
  background: linear-gradient(135deg, #f8fafc, #edf2f7);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sidebar-item {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: 1px solid #f8fafc;
  transition: all 0.15s ease;
}
.sidebar-item:last-child {
  border-bottom: none;
}
.sidebar-item:hover {
  background: var(--ro-blue-subtle);
  color: var(--ro-blue);
  padding-left: 1.25rem;
}

/* ============ CONTENT AREA ============ */
.content-area {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  min-height: 400px;
}

/* ============ TABLES ============ */
.horizontal-table, .vertical-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.horizontal-table th, .vertical-table th {
  background: #f8fafc;
  color: #334155;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.horizontal-table td, .vertical-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
}
.horizontal-table tr:last-child td {
  border-bottom: none;
}
.horizontal-table tr:nth-child(even) td {
  background: #fafafa;
}
.horizontal-table tr:hover td {
  background: #f0f7ff;
}

.vertical-table th {
  width: 30%;
  background: #f8fafc;
  border-right: 1px solid var(--border-subtle);
}

/* ============ FORMS & INPUTS ============ */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.55rem 0.85rem;
  color: #0f172a;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--ro-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

button:not(.nav-dropdown-trigger),
input[type="submit"],
input[type="button"],
.btn-primary {
  background: linear-gradient(135deg, var(--ro-blue), var(--ro-blue-hover));
  color: #ffffff !important;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

button:not(.nav-dropdown-trigger):hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-gold {
  background: linear-gradient(135deg, var(--ro-gold-light), var(--ro-gold)) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.2) !important;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--ro-gold), var(--ro-gold-hover)) !important;
  box-shadow: 0 4px 8px rgba(217, 119, 6, 0.3) !important;
}

/* ============ ALERTS & MESSAGES ============ */
.message, .notice {
  padding: 0.85rem 1.15rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.message {
  background: var(--ro-blue-subtle);
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.notice {
  background: var(--ro-gold-subtle);
  border: 1px solid #fde68a;
  color: #92400e;
}

/* ============ LOGIN BOX ============ */
.login-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-card);
}

/* ============ FOOTER ============ */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.75rem;
}
