/* --- THEME VARIABLES --- */
:root {
  --gvc-blue: #062c3b;
  --gvc-light: #f4f9fb;
  --gvc-accent: #0b4f6c;
  --gvc-green: #198754;
  --gvc-hover: #0a435c;
}

body { 
  font-family: 'Inter', sans-serif; 
  background-color: var(--gvc-light); 
  display: flex; 
  flex-direction: column; 
  min-height: 100vh; 
  color: #333; /* Standard text color */
}

/* --- UTILITIES --- */
.hidden { 
    display: none !important; 
}

/* Smooth Fade In Animation for Tabs/Sections */
.animate-fade-in {
    animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom GVC Button */
.btn-gvc { 
    background-color: var(--gvc-blue); 
    border-color: var(--gvc-blue);
    color: white; 
    transition: all 0.2s ease;
}
.btn-gvc:hover { 
    background-color: var(--gvc-hover); 
    border-color: var(--gvc-hover);
    transform: translateY(-1px);
}
.btn-gvc:active {
    transform: translateY(0);
}

/* Loader Icon (for buttons) */
.loader { 
  border: 2px solid rgba(255,255,255,0.3); 
  border-top: 2px solid white; 
  border-radius: 50%; 
  width: 14px; 
  height: 14px; 
  animation: spin 1s linear infinite; 
  display: inline-block; 
  vertical-align: middle; 
  margin-right: 6px; 
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- LOGIN SCREEN --- */
.login-wrapper { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding-bottom: 60px;
    background: linear-gradient(135deg, #f4f9fb 0%, #eef6f9 100%);
}
.card-custom { 
    border: none; 
    box-shadow: 0 10px 30px rgba(6, 44, 59, 0.08); 
    border-radius: 12px; 
    overflow: hidden; 
    background: #fff; 
}
.login-header-text { 
    letter-spacing: 1px; 
    font-size: 0.7rem;
    color: #8da2ab;
    text-transform: uppercase;
}

/* --- DASHBOARD STYLING --- */
.navbar { 
    background-color: #ffffff; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.04); 
    border-bottom: 1px solid #eef2f5;
}

.main-content { 
    flex: 1; 
    padding-top: 30px; 
}

/* Nav Tabs */
.nav-tabs { 
    border-bottom: 2px solid #e9ecef; 
}
.nav-tabs .nav-link { 
    color: #6c757d; 
    border: none; 
    font-weight: 500; 
    padding: 12px 20px; 
    transition: all 0.2s; 
    margin-bottom: -2px; /* Pulls active border down */
}
.nav-tabs .nav-link:hover { 
    color: var(--gvc-accent); 
    background: rgba(11, 79, 108, 0.03); 
}
.nav-tabs .nav-link.active { 
    color: var(--gvc-blue); 
    border-bottom: 3px solid var(--gvc-blue); 
    font-weight: 700; 
    background: transparent; 
}

/* --- TABLE STYLING --- */
.table-container { 
    min-height: 200px; 
    max-height: 600px; 
    overflow-y: auto; 
    border: 1px solid #eef2f5;
    border-radius: 6px;
}
.table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8f9fa;
    border-bottom: 2px solid #eef2f5;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #6c757d;
}
.editable-cell { 
    cursor: text; 
    transition: background 0.2s; 
}
.editable-cell:focus { 
    outline: none; 
    background-color: #fff8e1; /* Light yellow on edit */
    box-shadow: inset 0 0 0 2px var(--gvc-accent);
    border-radius: 2px;
}
.editable-cell:hover {
    background-color: #fafafa;
}

/* --- GUIDE / INFO BOX --- */
.guide-box { 
    background: #f8f9fa; 
    padding: 12px 15px; 
    border-radius: 6px; 
    font-size: 0.85rem; 
    color: #555; 
    border-left: 4px solid var(--gvc-blue); 
    margin-top: 10px;
}
.guide-tag { 
    background: #fff; 
    padding: 2px 6px; 
    border-radius: 4px; 
    border: 1px solid #dee2e6; 
    font-family: monospace; 
    font-weight: bold; 
    color: #d63384; /* Bootstrap Pink for High Visibility */
}

/* --- FOOTER --- */
.gvc-footer { 
    background-color: #ffffff; 
    border-top: 1px solid #eef6f9; 
    padding: 25px 0; 
    margin-top: auto; 
    text-align: center; 
    color: #8da2ab; 
    font-size: 11px; 
}
.gvc-footer a { 
    color: #8da2ab; 
    text-decoration: underline; 
}