/* =============================================
   GLOBAL / BASE STYLES
   ============================================= */

body {
  background-color: #0a0908;
  color: #e8e2d8;
  font-family: "Oswald", sans-serif;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: "Bebas Neue", sans-serif;
  color: #e8e2d8;
  letter-spacing: 1px;
  text-shadow: none;
}


a {
  color: #e8e2d8;
  text-decoration: none;
}

a:hover {
  color: #c4bcb0;
  text-decoration: underline;
}

.flash-alert {
  color: #e8746a;
  margin-bottom: 15px;
}

.flash-notice {
  color: #7ac97a;
  margin-bottom: 15px;
}


/* =============================================
   GLOBAL FORM ELEMENTS (inputs/buttons outside .form-container)
   ============================================= */

input[type="text"],
input[type="email"],
input[type="password"] {
  background-color: #1a1614;
  border: 1px solid #3a2f2a;
  color: #e8e2d8;
  padding: 10px;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  border-radius: 3px;
}

input[type="submit"],
button {
  background-color: #e8e2d8;
  color: #0a0908;
  border: none;
  padding: 10px 20px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  cursor: pointer;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

input[type="submit"]:hover,
button:hover {
  background-color: #c4bcb0;
}


/* =============================================
   LOGIN / AUTH PAGE
   ============================================= */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 20px;
  background-image: url("/assets/rutbacksplash-5eb052c6.png");
  background-size: cover;
  background-position: center;
}

.auth-box {
  background-color: #14100e;
  border: 1px solid #3a2f2a;
  border-radius: 6px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 40px rgba(177, 18, 31, 0.15);
}

.auth-box h1 {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.auth-logo {
  max-width: 200px;
  margin-bottom: 10px;
}

.auth-subtitle {
  color: #8a8078;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.auth-box form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-box input[type="submit"] {
  margin-top: 10px;
}

.forgot-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9rem;
}


/* =============================================
   APP SHELL / SIDEBAR
   ============================================= */

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 150px;
  flex-shrink: 0;
  background-color: #100c0a;
  border-right: 1px solid #3a2f2a;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.sidebar-logo {
  text-align: center;
  padding: 0 15px 20px;
  border-bottom: 1px solid #3a2f2a;
  margin-bottom: 15px;
}

.sidebar-logo img {
  max-width: 60px;
  margin-bottom: 8px;
}

.sidebar-brand {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 700;
  color: #e8e2d8;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.sidebar-brand small {
  color: #8a8078;
  font-size: 0.65rem;
  letter-spacing: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 0 15px;
}

.nav-section {
  margin-bottom: 25px;
}

.nav-label {
  color: #6a6058;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.nav-link {
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  color: #e8e2d8;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.nav-link:hover {
  background-color: #1e1815;
  text-decoration: none;
  color: #e8746a;
}

.nav-disabled {
  color: #55504a;
  cursor: default;
}

.nav-disabled:hover {
  background-color: transparent;
  color: #55504a;
}

.sidebar-footer {
  padding: 15px;
  border-top: 1px solid #3a2f2a;
}

.main-content {
  flex: 1;
  overflow-y: auto;
}


/* =============================================
   TOP HEADER (page title + user menu)
   ============================================= */

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
  border-bottom: 1px solid #3a2f2a;
  background-color: #100c0a;
}

.top-header-title h2 {
  margin: 0;
  font-size: 1.6rem;
}

.top-header-title p {
  margin: 2px 0 0;
  color: #8a8078;
  font-size: 0.9rem;
}

.user-menu details {
  position: relative;
}

.user-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  padding: 6px 10px;
  border-radius: 4px;
}

.user-menu summary::-webkit-details-marker {
  display: none;
}

.user-menu summary:hover {
  background-color: #1e1815;
}

.user-avatar,
.user-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-placeholder {
  background-color: #b1121f;
  color: #e8e2d8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: "Oswald", sans-serif;
}

.user-name {
  color: #e8e2d8;
  font-size: 0.95rem;
}

.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 5px;
  background-color: #14100e;
  border: 1px solid #3a2f2a;
  border-radius: 6px;
  min-width: 100px;
  padding: 8px;
  z-index: 10;
}

.page-content {
  padding: 30px 40px;
}


/* =============================================
   SHARED FORM CONTAINER (New/Edit pages, Profile)
   ============================================= */

.form-container {
  max-width: 600px;
  background-color: #14100e;
  border: 1px solid #3a2f2a;
  border-radius: 6px;
  padding: 30px 40px;
}

.form-container label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #c4bcb0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-container input[type="text"],
.form-container input[type="number"],
.form-container input[type="date"],
.form-container textarea {
  width: 100%;
  box-sizing: border-box;
  background-color: #1a1614;
  border: 1px solid #3a2f2a;
  color: #e8e2d8;
  padding: 10px;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  border-radius: 3px;
  margin-bottom: 20px;
}

.form-container input[type="file"] {
  color: #c4bcb0;
  margin-bottom: 20px;
}


/* =============================================
   DASHBOARD (project cards grid)
   ============================================= */

.dashboard-header {
  text-align: center;
  padding: 30px 20px 10px;
}

.dashboard-logo {
  max-width: 120px;
  margin-bottom: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.dashboard-actions {
  text-align: center;
  padding: 20px;
}

.project-card {
  display: block;
  background-color: #14100e;
  border: 1px solid #3a2f2a;
  border-radius: 6px;
  padding: 20px;
  color: #e8e2d8;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  border-color: #b1121f;
  box-shadow: 0 0 20px rgba(177, 18, 31, 0.2);
  text-decoration: none;
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.project-status {
  display: inline-block;
  background-color: #b1121f;
  color: #e8e2d8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.project-description {
  color: #c4bcb0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.project-poster {
  margin: -20px -20px 15px -20px;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

.project-poster img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}


/* =============================================
   BUTTONS (shared)
   ============================================= */

.button-primary {
  display: inline-block;
  background-color: #b1121f;
  color: #e8e2d8;
  padding: 10px 25px;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.button-primary:hover {
  background-color: #8f0f19;
  text-decoration: none;
}

.button-danger {
  background-color: transparent;
  border: 1px solid #b1121f;
  color: #b1121f;
  padding: 9px 20px;
  border-radius: 3px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  cursor: pointer;
}

.button-danger:hover {
  background-color: #b1121f;
  color: #e8e2d8;
}


/* =============================================
   PROJECT DETAIL PAGE
   ============================================= */

.project-detail {
  display: flex;
  gap: 30px;
  background-color: #14100e;
  border: 1px solid #3a2f2a;
  border-radius: 6px;
  padding: 30px;
  margin-bottom: 20px;
}

.project-detail-poster {
  flex-shrink: 0;
  width: 300px;
}

.project-detail-poster img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.project-detail-info {
  flex: 1;
}

.project-meta {
  margin: 15px 0;
  color: #c4bcb0;
}

.project-detail-description {
  line-height: 1.6;
  color: #c4bcb0;
  margin: 15px 0 25px;
}

.project-detail-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}


/* =============================================
   DOCUMENTS (list on project detail page)
   ============================================= */

.documents-section {
  margin-top: 30px;
}

.documents-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.document-card {
  display: block;
  background-color: #14100e;
  border: 1px solid #3a2f2a;
  border-radius: 6px;
  padding: 15px;
  color: #e8e2d8;
}

.document-card:hover {
  border-color: #b1121f;
  text-decoration: none;
}

.document-thumb {
  margin: -15px -15px 10px -15px;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

.document-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.document-card h4 {
  margin: 0 0 5px;
  font-size: 1rem;
  color: #e8e2d8;
  font-family: "Oswald", sans-serif;
}

.document-meta {
  font-size: 0.8rem;
  color: #8a8078;
  margin: 0;
}

.no-documents {
  color: #6a6058;
  font-style: italic;
}

/* =============================================
   DASHBOARD STATS
   ============================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: #14100e;
  border: 1px solid #3a2f2a;
  border-radius: 6px;
  padding: 20px;
}

.stat-label {
  color: #8a8078;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px;
}

.stat-value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  color: #e8e2d8;
  margin: 0;
}

.recent-projects-section {
  margin-top: 20px;
}

/* =============================================
   CALENDAR
   ============================================= */

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-header h2 {
  margin: 0;
  font-size: 1.8rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #3a2f2a;
  border: 1px solid #3a2f2a;
  border-radius: 6px;
  overflow: hidden;
}

.calendar-day-label {
  background-color: #100c0a;
  color: #8a8078;
  text-align: center;
  padding: 10px 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calendar-cell {
  background-color: #14100e;
  min-height: 110px;
  padding: 8px;
  box-sizing: border-box;
}

.calendar-cell-empty {
  background-color: #0d0b0a;
}

.calendar-cell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.calendar-date-number {
  color: #c4bcb0;
  font-size: 0.85rem;
  font-weight: 500;
}

.calendar-add-link {
  color: #6a6058;
  font-size: 0.9rem;
  padding: 0 5px;
  border-radius: 3px;
}

.calendar-add-link:hover {
  background-color: #1e1815;
  color: #e8746a;
  text-decoration: none;
}

.calendar-entry {
  background-color: #1e1815;
  border-left: 3px solid #b1121f;
  border-radius: 3px;
  padding: 3px 6px;
  margin-bottom: 4px;
  font-size: 0.75rem;
  overflow: hidden;
}

.calendar-entry a {
  color: #e8e2d8;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-entry-project {
  display: block;
  color: #8a8078;
  font-size: 0.65rem;
}

.calendar-entry-due-date {
  border-left-color: #e8746a;
}

.calendar-entry-meeting {
  border-left-color: #4a90c9;
}

.calendar-entry-convention {
  border-left-color: #c9a24a;
}

/* =============================================
   DASHBOARD COLUMNS / UPCOMING
   ============================================= */

.dashboard-columns {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.recent-projects-section {
  flex: 2;
}

.upcoming-section {
  flex: 1;
  min-width: 280px;
  background-color: #14100e;
  border: 1px solid #3a2f2a;
  border-radius: 6px;
  padding: 20px;
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upcoming-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.upcoming-date {
  flex-shrink: 0;
  width: 45px;
  text-align: center;
  background-color: #1a1614;
  border: 1px solid #3a2f2a;
  border-radius: 4px;
  padding: 4px 0;
}

.upcoming-month {
  display: block;
  color: #b1121f;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.upcoming-day {
  display: block;
  color: #e8e2d8;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
}

.upcoming-details {
  flex: 1;
  min-width: 0;
}

.upcoming-title {
  margin: 0;
  color: #e8e2d8;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-meta {
  margin: 2px 0 0;
  color: #8a8078;
  font-size: 0.75rem;
}

/* =============================================
   RECENT ACTIVITY
   ============================================= */

.activity-section {
  flex: 1;
  min-width: 260px;
  background-color: #14100e;
  border: 1px solid #3a2f2a;
  border-radius: 6px;
  padding: 20px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.activity-item {
  border-bottom: 1px solid #2a221e;
  padding-bottom: 10px;
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-description {
  margin: 0;
  color: #e8e2d8;
  font-size: 0.85rem;
  line-height: 1.4;
}

.activity-project {
  color: #8a8078;
}

.activity-time {
  margin: 2px 0 0;
  color: #6a6058;
  font-size: 0.7rem;
}

.calendar-delete-btn {
  background-color: transparent;
  border: none;
  color: #6a6058;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 6px;
}

.calendar-delete-btn:hover {
  color: #e8746a;
  background-color: transparent;
}