:root {
    --primary: #ff3a3a;
    --primary-dark: #cc0000;
    --primary-light: #ff6b6b;
    --dark: #0a0a0a;
    --dark-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --light-gray: #3a3a3a;
    --light: #f0f0f0;
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
  }
 
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
 
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
  }
 
  a {
    text-decoration: none;
    color: inherit;
  }
 
  
  .dashboard-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
  }
 
  
  .sidebar {
    background-color: var(--dark-gray);
    border-right: 1px solid rgba(255, 58, 58, 0.1);
    padding: 1.5rem;
    position: fixed;
    width: 240px;
    height: 100vh;
    z-index: 100;
  }
 
  .logo-container {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
 
  .logo-container h1 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
 
  .logo-container p {
    color: var(--light);
    opacity: 0.7;
    font-size: 0.8rem;
    margin-top: 0.25rem;
  }
 
  .main-nav ul {
    list-style: none;
  }
 
  .main-nav li {
    margin-bottom: 0.5rem;
  }
 
  .main-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
  }
 
  .main-nav a:hover {
    background-color: rgba(255, 58, 58, 0.1);
    color: var(--primary);
  }
 
  .main-nav a.active {
    background-color: var(--primary);
    color: white;
  }
 
  .main-nav i {
    width: 20px;
    text-align: center;
  }
 
  .badge {
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-left: auto;
  }
 
  
  .main-content {
    grid-column: 2;
    padding-left: 240px;
  }
 
  .topbar {
    background-color: var(--dark-gray);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 90;
  }
 
  .search-bar {
    position: relative;
    width: 300px;
  }
 
  .search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light);
    opacity: 0.5;
  }
 
  .search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background-color: var(--medium-gray);
    border: none;
    border-radius: 6px;
    color: var(--light);
  }
 
  .search-bar input:focus {
    outline: 2px solid var(--primary);
  }
 
  .user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    cursor: pointer;
  }
 
  .user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
 
  .username {
    font-weight: 600;
  }
 
  .role {
    font-size: 0.8rem;
    opacity: 0.7;
  }
 
  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
  }
 
  .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--dark-gray);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
  }
 
  .user-menu:hover .dropdown-menu {
    display: block;
  }
 
  .dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
  }
 
  .dropdown-menu a:hover {
    background-color: rgba(255, 58, 58, 0.1);
    color: var(--primary);
  }
 
  .dropdown-menu i {
    margin-right: 0.75rem;
    width: 18px;
  }
 
  
  .content-area {
    padding: 2rem;
  }
 
  .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
  }
 
  .page-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
  }
 
  
  .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
 
  .card {
    background-color: var(--dark-gray);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
 
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
 
  .card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
 
  .card p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
  }
 
  
  .data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
  }
 
  .data-table th {
    background-color: var(--medium-gray);
    text-align: left;
    padding: 1rem;
    font-weight: 600;
  }
 
  .data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--medium-gray);
  }
 
  .data-table tr:last-child td {
    border-bottom: none;
  }
 
  .data-table tr:hover {
    background-color: rgba(255, 58, 58, 0.03);
  }
 
  
  .form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--dark-gray);
    border-radius: 8px;
    padding: 2rem;
    border-left: 4px solid var(--primary);
  }
 
  .form-group {
    margin-bottom: 1.5rem;
  }
 
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
 
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--medium-gray);
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    color: var(--light);
    transition: all 0.2s ease;
  }
 
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 58, 58, 0.2);
  }
 
  .form-group textarea {
    min-height: 120px;
    resize: vertical;
  }
 
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }
 
  .btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
  }
 
  .btn i {
    font-size: 0.9em;
  }
 
  .btn-secondary {
    background-color: var(--medium-gray);
  }
 
  .btn-secondary:hover {
    background-color: var(--light-gray);
  }
 
  
  .file-upload-wrapper {
    margin-top: 0.5rem;
  }
 
  .file-upload-info {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.25rem;
  }
 
  .file-preview {
    margin-top: 1rem;
  }
 
  .file-item {
    background-color: var(--medium-gray);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
  }
 
  .file-icon {
    color: var(--primary);
    font-size: 1.2rem;
  }
 
  .file-info {
    flex: 1;
  }
 
  .file-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
  }
 
  .file-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
  }
 
  
  .alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
  }
 
  .alert i {
    font-size: 1.2rem;
  }
 
  .alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 4px solid var(--success);
  }
 
  .alert-danger {
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 4px solid var(--error);
  }
 
  
  @media (max-width: 992px) {
    .dashboard-container {
      grid-template-columns: 1fr;
    }
 
    .sidebar {
      transform: translateX(-100%);
      transition: transform 0.3s ease;
    }
 
    .sidebar.active {
      transform: translateX(0);
    }
 
    .main-content {
      padding-left: 0;
    }
 
    .mobile-menu-btn {
      display: block;
      position: fixed;
      top: 1rem;
      left: 1rem;
      z-index: 110;
      background-color: var(--primary);
      color: white;
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      font-size: 1.2rem;
      cursor: pointer;
    }
  }
 
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
 
  .content-area > * {
    animation: fadeIn 0.3s ease forwards;
  }
 
 
  
.messages-container {
  margin-top: 2rem;
}
 
.messages-list {
  display: grid;
  gap: 1rem;
}
 
.message-card {
  background-color: var(--dark-gray);
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}
 
.message-card.unread {
  border-left: 4px solid var(--primary-light);
  background-color: rgba(255, 58, 58, 0.05);
}
 
.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--primary-light);
}
 
.message-sender {
  font-weight: 600;
}
 
.message-date {
  opacity: 0.7;
}
 
.message-subject {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
 
.message-content {
  white-space: pre-wrap;
  margin-bottom: 1rem;
  line-height: 1.6;
}
 
.message-actions {
  display: flex;
  gap: 0.5rem;
}
 

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
 

@media (max-width: 768px) {
  .message-header {
      flex-direction: column;
      gap: 0.5rem;
  }
 
  .message-date {
      align-self: flex-end;
  }
}
 

.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1000;
  background: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
 

@media (max-width: 992px) {
  .dashboard-container {
      grid-template-columns: 1fr;
  }
 
  .sidebar {
      position: fixed;
      width: 250px;
      height: 100vh;
      left: -250px;
      transition: left 0.3s ease;
      z-index: 900;
      background: var(--dark-gray);
      box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }
 
  .sidebar.active {
      left: 0;
  }
 
  .main-content {
      margin-left: 0;
      padding-left: 0;
  }
 
  .mobile-menu-btn {
      display: flex;
      align-items: center;
      justify-content: center;
  }
 
  
  .sidebar-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.5);
      z-index: 800;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
  }
 
  .sidebar-overlay.active {
      opacity: 1;
      visibility: visible;
  }
 
  
  .topbar {
      padding-left: 70px;
  }
}
 

.motivational-message {
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary);
}
 
.motivational-message h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}
 
.message-content {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
 
.message-footer {
  text-align: right;
  font-style: italic;
  opacity: 0.8;
}
 

.goals-section {
  background: var(--dark-gray);
  border-radius: 8px;
  padding: 1.5rem;
}
 
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
 
.goals-list {
  display: grid;
  gap: 1rem;
}
 
.goal-card {
  display: flex;
  align-items: flex-start;
  background: var(--medium-gray);
  padding: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
 
.goal-card.completed {
  opacity: 0.7;
}
 
.goal-card.completed .goal-text {
  text-decoration: line-through;
}
 
.goal-checkbox {
  margin-right: 1rem;
}
 
.goal-checkbox input {
  transform: scale(1.3);
  cursor: pointer;
}
 
.goal-content {
  flex: 1;
}
 
.goal-text {
  margin-bottom: 0.5rem;
}
 
.goal-date {
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
 
.goal-actions {
  margin-left: 1rem;
}
 
.btn-icon {
  background: none;
  border: none;
  color: var(--primary-light);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem;
}
 
.btn-icon:hover {
  color: var(--primary);
}
 
.empty-state {
  text-align: center;
  padding: 2rem;
  opacity: 0.7;
}
 
.empty-state i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}
 

.site-footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 2rem 0 0;
  border-top: 1px solid rgba(255, 58, 58, 0.2);
  width: 100%;
  overflow: hidden; 
}
 
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  box-sizing: border-box; 
}
 

.dashboard-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
 
.main-content {
  flex: 1; 
  padding-bottom: 2rem; 
}
 

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
}
 

.footer-section h4 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}
 
.footer-section h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--primary);
}
 
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0; 
}
 
.footer-section ul li {
  margin-bottom: 0.8rem;
}
 
.footer-section ul li a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 0.2rem 0;
}
 
.footer-section ul li a:hover {
  color: var(--primary);
}
 
.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap; 
}
 
.social-icon {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
 
.social-icon:hover {
  background: var(--primary);
  transform: translateY(-3px);
}
 
.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 0;
  opacity: 0.8;
}
 
.contact-info i {
  color: var(--primary);
  width: 20px;
  text-align: center;
}
 
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 2rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
 
.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
 
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
 
.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}
 
.footer-links a:hover {
  color: var(--primary);
}
 
.copyright {
  opacity: 0.7;
  font-size: 0.9rem;
}
 

@media (max-width: 768px) {
  .footer-container {
      grid-template-columns: 1fr;
      text-align: center;
      padding: 0 1rem 2rem; 
  }
 
  .footer-section h4::after {
      left: 50%;
      transform: translateX(-50%);
  }
 
  .social-links {
      justify-content: center;
  }
 
  .contact-info {
      display: flex;
      flex-direction: column;
      align-items: center;
  }
 
  .footer-bottom {
      padding: 1.5rem 1rem; 
  }
}
 

.daily-motivation {
  border-left: 4px solid var(--primary);
  animation: fadeIn 0.5s ease;
}
 
.daily-motivation .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
 
.daily-motivation blockquote {
  font-size: 1.1rem;
  line-height: 1.6;
}
 
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
 

.recent-messages .card {
  border-left: 3px solid var(--primary);
  transition: all 0.3s ease;
}
 
.recent-messages .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
 
.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
 
::-webkit-scrollbar {
    width: 8px; 
  }
 
  ::-webkit-scrollbar-track {
    background: #1a1a1a; 
    border-radius: 10px; 
  }
 
  ::-webkit-scrollbar-thumb {
    background-color: #ff0000; 
    border-radius: 10px; 
    border: 2px solid #1a1a1a; 
  }
 
 
  ::-webkit-scrollbar-thumb:hover {
    background-color: #cc0000; 
  }
 }