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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f5f5f5;
  color: #333;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Dashboard styling */
.dashboard-header {
  background: linear-gradient(135deg, #1a3a52 0%, #2c5f8d 100%);
  color: white;
  padding: 2rem;
  border-bottom: 3px solid #ff8c42;
}

.dashboard-header h1 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.dashboard-header p {
  font-size: 14px;
  opacity: 0.9;
}

.nav-tabs {
  display: flex;
  gap: 0;
  background: white;
  border-bottom: 1px solid #ddd;
  padding: 0 2rem;
  overflow-x: auto;
}

.nav-tab {
  padding: 12px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: #999;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-tab:hover {
  color: #333;
}

.nav-tab.active {
  color: #1a3a52;
  border-bottom-color: #ff8c42;
  font-weight: 500;
}

.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}

.summary-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.25rem;
}

.summary-card-label {
  font-size: 13px;
  color: #999;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-card-value {
  font-size: 28px;
  font-weight: 500;
  color: #1a3a52;
  margin-bottom: 0.5rem;
}

.summary-card-subtext {
  font-size: 13px;
  color: #bbb;
}

.section-title {
  font-size: 18px;
  font-weight: 500;
  margin: 2rem 0 1rem;
  color: #333;
}

.subsection-title {
  font-size: 15px;
  font-weight: 500;
  margin: 1.5rem 0 1rem;
  color: #333;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ddd;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

th {
  background: #f9f9f9;
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  color: #999;
  border-bottom: 1px solid #ddd;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.badge-notification {
  background: #e7f3ff;
  color: #0056b3;
}

.badge-proposal {
  background: #fff3cd;
  color: #856404;
}

.badge-kickoff {
  background: #e2e3e5;
  color: #383d41;
}

.badge-progress {
  background: #cfe2ff;
  color: #084298;
}

.badge-completed {
  background: #d4edda;
  color: #155724;
}

.badge-active {
  background: #cfe2ff;
  color: #084298;
}

.badge-onhold {
  background: #f8d7da;
  color: #842029;
}

.badge-standby {
  background: #fff3cd;
  color: #856404;
}

.badge-escalation {
  background: #f8d7da;
  color: #842029;
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-dot.nominal {
  background: #28a745;
}

.status-dot.warning {
  background: #ffc107;
}

.status-dot.critical {
  background: #dc3545;
}

.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff 0%, #ff8c42 50%, #1a3a52 100%);
  transition: width 0.3s;
}

.progress-label {
  font-size: 12px;
  font-weight: 500;
  color: #999;
  min-width: 35px;
  text-align: right;
}

.utilization-bar {
  width: 100%;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.utilization-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff 0%, #ff8c42 50%, #d63031 100%);
  transition: width 0.3s;
}

.alert-box {
  background: #fffbf0;
  border-left: 4px solid #ff8c42;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
}

.activity-row {
  font-size: 13px;
  color: #999;
}

.activity-row strong {
  color: #333;
}

/* Loading state */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  color: #999;
}

/* Error state */
.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

/* Login form */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a3a52 0%, #2c5f8d 100%);
}

.login-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

.login-form h1 {
  font-size: 24px;
  margin-bottom: 1.5rem;
  color: #1a3a52;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: #ff8c42;
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.btn {
  width: 100%;
  padding: 10px 12px;
  background: #1a3a52;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: #0f2438;
}

.btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
