/* General Styles */
:root {
  --primary-color: #4E31AA;
  --primary-dark: #3A2482;
  --primary-light: #7C67D6;
  --secondary-color: #03dac6;
  --background-color: #ffffff;
  --surface-color: #f8f9fc;
  --error-color: #b00020;
  --text-primary: #333333;
  --text-secondary: #757575;
  --text-hint: #9e9e9e;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--background-color);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.9rem;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  opacity: 0.9;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Cards */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ============================================
   Unified Navbar / Topbar Styles
   ============================================ */
.navbar {
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.8rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar-brand {
  font-family: 'Satoshi', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  margin-right: 5px;
  cursor: pointer;
}

.logo-container {
  display: flex;
  align-items: center;
  height: 42px;
}

.logo {
  height: 100%;
  max-width: 180px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  color: #6200ea;
}

.logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
}

.logout-btn:hover {
  color: var(--primary-color);
}

/* App Title Dropdown */
.app-title-dropdown {
  position: relative;
}

.app-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  padding: 4px 0;
}

.app-title h2 {
  font-size: 1.3rem;
  margin: 0;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.app-title i {
  margin-left: 5px;
  font-size: 0.8rem;
  color: #666;
  transition: transform 0.2s ease;
}

.app-title.open i {
  transform: rotate(180deg);
}

.navbar .app-title {
  display: flex;
  align-items: center;
}

.navbar .app-title i {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.navbar .app-title.open i {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 180px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 8px 0;
  margin-top: 8px;
  display: none;
  z-index: 20;
}

.navbar .dropdown-menu {
  top: calc(100% + 5px);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.dropdown-menu.open {
  display: block;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(0,0,0,0.03);
}

.dropdown-item i {
  margin-right: 10px;
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: #666;
}

.dropdown-divider {
  height: 1px;
  margin: 6px 0;
  background-color: rgba(0,0,0,0.07);
}

.dropdown-item.active {
  background-color: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
}

.dropdown-item.active i {
  color: #7c3aed;
}

/* Page Header */
.page-header {
  margin-bottom: 1.5rem;
}

.page-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 600;
}

.page-header p {
  margin: 0;
  color: #666;
}

/* Main Content */
.main-content {
  padding: 0.5rem 0;
}

/* Responsive navbar */
@media (max-width: 768px) {
  .navbar-inner {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
  }
}

/* Request Item */
.request-item {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

.request-item.inbox {
  border-left-color: #ffc107;
}

.request-item.in_progress {
  border-left-color: var(--secondary-color);
}

.request-item.completed {
  border-left-color: #4caf50;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* Info Message */
.info-message {
  background-color: #e3f2fd;
  color: #0277bd;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.info-message ol, 
.info-message ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.status-badge.inbox {
  background-color: #fff8e1;
  color: #ff8f00;
}

.status-badge.in_progress {
  background-color: #e0f7fa;
  color: #0097a7;
}

.status-badge.completed {
  background-color: #e8f5e9;
  color: #388e3c;
}
