:root {
  /* Industrial Palette */
  --deep-navy: #111417; /* Re-used var name to save refactor, but it's dark steel now */
  --light-navy: #1A1F24;
  --steel-grey: #2A3036;
  --accent-gold: #FF5A00; /* Industrial Orange */
  --text-main: #FFFFFF;
  --text-secondary: #9BA3B0;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto !important;
}

body {
  background-color: var(--deep-navy);
  color: var(--text-main);
  font-family: var(--font-body);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Fix for navbar overlap */
main[role="main"] {
  padding-top: 70px;
}

/* Premium Heavy Industrial Background Texture (Optional subtle pattern) */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(rgba(255, 90, 0, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -1;
  opacity: 0.5;
}

h1, h2, h3, h4, h5, h6, .brand-text {
  font-family: var(--font-heading);
  font-weight: 800; /* Heavy weight for industrial feel */
  color: #ffffff;
  letter-spacing: -0.5px;
}

/* Industrial Cards (No more fragile glassmorphism, but heavy solid steel cards) */
.glass-card {
  background: var(--light-navy);
  border: 1px solid var(--steel-grey);
  border-left: 4px solid var(--accent-gold);
  border-radius: 4px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  border-color: var(--accent-gold);
}

/* Navigation Custom */
.navbar-custom {
  background: rgba(17, 20, 23, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: padding 0.3s ease;
}

.navbar-custom .nav-link {
  color: var(--text-secondary) !important;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover::after {
  width: 100%;
}

.navbar-custom .nav-link:hover {
  color: var(--text-main) !important;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff !important;
  text-transform: uppercase;
}

.navbar-brand span {
  color: var(--accent-gold);
}

/* Buttons */
.btn-primary-custom {
  background-color: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
  border-radius: 0; /* Square edges for industrial feel */
  padding: 0.75rem 2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-primary-custom:hover {
  background-color: var(--accent-gold);
  color: #000;
  transform: translateY(-2px);
}

.btn-solid-custom {
  background-color: var(--accent-gold);
  color: #000 !important;
  font-family: var(--font-heading);
  font-weight: 800;
  border-radius: 0;
  padding: 0.75rem 2rem;
  border: 2px solid var(--accent-gold);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-solid-custom:hover {
  background-color: #E65000;
  border-color: #E65000;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 90, 0, 0.3);
}

.btn-secondary-custom {
  background-color: transparent;
  color: #dc3545;
  border: 2px solid #dc3545;
  border-radius: 0;
  padding: 0.75rem 2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  transition: all 0.2s ease;
  display: inline-block;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-secondary-custom:hover {
  background-color: #dc3545;
  color: #fff;
}

.nav-action-btn {
  padding: 0.5rem 1.5rem !important; /* Unified smaller padding for navbar */
  font-size: 0.8rem;
  height: 38px;
  box-sizing: border-box !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Forms - Solid Industrial styling */
.form-label {
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--text-secondary) !important;
    font-weight: 700;
    text-transform: uppercase;
}

.form-control.bg-transparent {
    background: var(--light-navy) !important;
    border: 1px solid var(--steel-grey);
    border-radius: 2px;
    padding: 0.85rem 1.2rem;
    color: #ffffff !important;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.form-control.bg-transparent:focus {
    background: #111417 !important;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 1px var(--accent-gold);
}

::placeholder {
    color: #5A6372 !important;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Sections */
.section-padding {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-gold);
  margin-top: 15px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 3rem;
  max-width: 700px;
  line-height: 1.8;
  font-weight: 400;
}

.footer {
  background-color: #0A0C0E;
  color: var(--text-secondary);
  padding: 2rem 0;
  border-top: 2px solid var(--steel-grey);
}

/* Custom Scrollbar for modern look */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--light-navy);
}
::-webkit-scrollbar-thumb {
  background: var(--steel-grey);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Utility Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Dashboard specific responsive adjustments */
@media (max-width: 992px) {
    .glass-card {
        padding: 1.5rem;
    }
}

/* Superior Mobile Table Responsiveness (Card layout for tables) */
@media screen and (max-width: 768px) {
    .table-responsive-mobile table {
        border: 0;
    }
    .table-responsive-mobile table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    .table-responsive-mobile table tr {
        border-bottom: 2px solid var(--accent-gold) !important;
        display: block;
        margin-bottom: 1rem;
        background-color: rgba(255,255,255,0.02);
        padding: 10px;
        border-radius: 6px;
    }
    .table-responsive-mobile table td {
        border-bottom: 1px solid rgba(255,255,255,0.05);
        display: block;
        font-size: 0.9rem;
        text-align: right !important;
        padding: 0.5rem !important;
    }
    .table-responsive-mobile table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
        color: var(--text-secondary);
        font-size: 0.75rem;
    }
    .table-responsive-mobile table td:last-child {
        border-bottom: 0;
    }
}