/* Leadership Portal Styles */
body {
  background: #181818;
  color: #f5f5f5;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
header {
  background: #141414;
  border-bottom: 1px solid #e2b90f;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  height: 60px;
}
header h1 {
  color: #e2b90f;
  font-weight: 400;
}
nav[role="navigation"] {
  background: #181818;
  border-right: 1.5px solid #e2b90f;
}
nav a {
  color: #e2b90f;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1em;
}
nav a:hover {
  text-decoration: underline;
}
.container {
  background: #222;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
input, textarea, select, button {
  font-size: 1em;
  margin: 8px 0;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #e2b90f;
  background: #181818;
  color: #f5f5f5;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #e2b90f;
}
button {
  background: #e2b90f;
  color: #181818;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
button:hover {
  background: #f7d94c;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
table th, table td {
  padding: 10px;
  border-bottom: 1px solid #333;
  text-align: left;
}
table th {
  background: #222;
  color: #e2b90f;
}
.card {
  background: #222;
  border-radius: 8px;
  padding: 18px;
  margin: 10px;
  display: inline-block;
  min-width: 180px;
  color: #e2b90f;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
footer {
  background: #181818;
  color: #e2b90f;
  text-align: center;
  padding: 18px 0 10px 0;
  font-size: 1em;
  border-top: 1px solid #e2b90f;
}

/* Layout structure */
.main-content {
    flex: 1;
    margin-top: 60px; /* Height of header */
    padding: 20px;
}

/* Header refinements */
.main-header {
    position: fixed;
    width: 100%;
    height: 60px;
    background: #141414;
    border-bottom: 1px solid #e2b90f;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

/* Navigation refinements */
.main-nav {
    position: fixed;
    left: 0;
    top: 60px; /* Below header */
    height: calc(100vh - 60px);
    width: 250px;
    background: #181818;
    border-right: 1px solid #e2b90f;
    z-index: 99;
    transition: transform 0.3s ease-in-out;
}

/* Desktop layout */
@media (min-width: 769px) {
    .main-content {
        margin-left: 250px; /* Width of nav */
        transition: margin-left 0.3s ease-in-out;
    }
    
    .main-nav {
        transform: none !important;
    }
    
    .sidebar-toggle,
    .close-nav {
        display: none !important;
    }
}

/* Mobile layout */
@media (max-width: 768px) {
    .main-nav {
        transform: translateX(-100%);
        width: 100%;
        max-width: 300px;
    }
    
    .main-nav.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Responsive form */
.responsive-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
}

/* List container */
.list-container {
  background: #222;
  border-radius: 8px;
  padding: 24px;
  margin-top: 2rem;
}

/* Primary button */
.primary-button {
  background: #e2b90f;
  color: #181818;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  align-self: flex-start;
}

.primary-button:hover {
  background: #f7d94c;
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(0);
}

/* Logo styles */
.header-logo {
    height: 40px;
    width: auto;
    display: block;
}

.nav-logo {
    height: 30px;
    width: auto;
    display: block;
}

/* Ensure logos are visible */
.header-left img,
.nav-header img {
    object-fit: contain;
    max-width: 100%;
}

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.dashboard-card {
    background: #222;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(226, 185, 15, 0.1);
}

.dashboard-card h3 {
    color: #e2b90f;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(226, 185, 15, 0.2);
    padding-bottom: 0.5rem;
}

.card-content {
    min-height: 150px;
}

/* Dashboard responsiveness */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 1rem 0.5rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
}

/* Active nav link */
.nav-links a.active {
    background-color: rgba(226, 185, 15, 0.1);
    border-left: 3px solid #e2b90f;
    margin-left: -3px;
}

/* Main content spacing */
.main-content {
    padding: 2rem;
    margin-top: 60px;
}

@media (min-width: 769px) {
    .main-content {
        margin-left: 250px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-container {
    padding: 16px;
  }
  
  .responsive-form {
    gap: 0.75rem;
  }
  
  .primary-button {
    width: 100%;
    align-self: stretch;
  }
}

@media (max-width: 600px) {
  header img { height: 50px; }
  header h1 { font-size: 1.1em; }
  .main-content h2 { font-size: 1.1em; }
}

@media (max-width: 480px) {
  .main-content {
    padding: 20px 10px;
  }
  
  .form-container {
    padding: 12px;
  }
  
  input, textarea {
    font-size: 16px; /* Prevents zoom on mobile */
  }
}
