@font-face {
  font-family: 'ralewaymedium';
  src: url('../fonts/Raleway-Medium.ttf');
}

@font-face {
  font-family: 'ralewaysemibold';
  src: url('../fonts/Raleway-Bold.ttf');
}

@font-face {
  font-family: 'ralewayextrabold';
  src: url('../fonts/Raleway-ExtraBold.ttf');
}

.wrapper {
  font-family: Raleway, 'ralewaymedium';
  font-weight: 500;
}

html, body {
  position: relative !important;
  overflow-x: hidden !important;
  font-family: Raleway, 'ralewaymedium';
  font-weight: 500;
}

/* Dashboard Styles */
.dashboard-container {
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* Sidebar Styles */
#sidebar-wrapper {
  min-height: 100vh;
  width: 250px;
  background-color: #f8f8f8;
  border-right: 1px solid #dee2e6;
}

#sidebar-bg {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 20px 0;
}

.sidebar-panel-title {
  background-color: #d75d5a;
  width: 100%;
  height: 50px;
  color: white;
  line-height: 50px;
  text-align: center;
  font-size: 0.85em;
  font-family: Raleway, 'ralewaymedium';
  font-weight: 500;
}

/* Navigation Styles */
.nav-tabs .nav-link {
  background-color: white;
  opacity: 0.9;
  font-family: Raleway, 'ralewaysemibold';
  font-weight: 600;
  font-size: 0.75em;
  padding: 15px 20px;
  margin-top: 10px;
  height: 50px;
  border: none;
  color: #333;
}

.nav-tabs .nav-link.active {
  background-color: #d75d5a;
  color: white;
}

.nav-tabs .nav-link:hover {
  background-color: #e6e6e6;
  border-color: transparent;
}

.nav-tabs .nav-link.active:hover {
  background-color: #c44741;
}

/* Content Area */
.content-area {
  margin-left: 250px;
  padding: 20px;
  min-height: 100vh;
}

/* Header Styles */
.dashboard-header {
  background-color: white;
  padding: 15px 20px;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 20px;
}

.dashboard-title {
  font-family: Raleway, 'ralewaysemibold';
  font-weight: 600;
  font-size: 1.5em;
  color: #333;
}

.welcome-text {
  font-family: Raleway, 'ralewaymedium';
  font-weight: 500;
  color: #666;
  text-align: right;
}

/* Post Styles */
.post-container {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.post-title {
  font-family: Raleway, 'ralewaysemibold';
  font-weight: 600;
  font-size: 1.2em;
  color: #333;
  margin: 0;
}

.post-category {
  background-color: #d75d5a;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: 500;
}

.post-date {
  color: #666;
  font-size: 0.9em;
}

.post-body {
  font-family: Raleway, 'ralewaymedium';
  font-weight: 500;
  line-height: 1.6;
  color: #444;
  white-space: pre-line;
}

/* Form Styles */
.form-container {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-title {
  font-family: Raleway, 'ralewaysemibold';
  font-weight: 600;
  font-size: 1.3em;
  color: #333;
  margin-bottom: 20px;
}

.form-group label {
  font-family: Raleway, 'ralewaysemibold';
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.form-control {
  font-family: Raleway, 'ralewaymedium';
  font-weight: 500;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
}

.form-control:focus {
  border-color: #d75d5a;
  box-shadow: 0 0 0 0.2rem rgba(215, 93, 90, 0.25);
}

/* Button Styles */
.btn-primary {
  background-color: #d75d5a;
  border-color: #d75d5a;
  font-family: Raleway, 'ralewaysemibold';
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #c44741;
  border-color: #c44741;
}

.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  font-family: Raleway, 'ralewaysemibold';
  font-weight: 600;
}

/* Search Styles */
.search-container {
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-family: Raleway, 'ralewaymedium';
  font-weight: 500;
}

.search-input:focus {
  outline: none;
  border-color: #d75d5a;
  box-shadow: 0 0 0 0.2rem rgba(215, 93, 90, 0.25);
}

/* Table Styles */
.table-container {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table {
  font-family: Raleway, 'ralewaymedium';
  font-weight: 500;
}

.table th {
  font-family: Raleway, 'ralewaysemibold';
  font-weight: 600;
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

/* Profile Styles */
.profile-container {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #d75d5a;
  margin-bottom: 20px;
}

.profile-info {
  font-family: Raleway, 'ralewaymedium';
  font-weight: 500;
}

.profile-label {
  font-family: Raleway, 'ralewaysemibold';
  font-weight: 600;
  color: #333;
}

/* Statistics Cards */
.stats-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.stats-number {
  font-family: Raleway, 'ralewayextrabold';
  font-weight: 800;
  font-size: 2em;
  color: #d75d5a;
  margin: 0;
}

.stats-label {
  font-family: Raleway, 'ralewaysemibold';
  font-weight: 600;
  color: #666;
  margin: 0;
  font-size: 0.9em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  #sidebar-wrapper {
    margin-left: -250px;
    transition: margin 0.25s ease-out;
  }
  
  #sidebar-wrapper.active {
    margin-left: 0;
  }
  
  .content-area {
    margin-left: 0;
  }
  
  .mobile-header {
    display: block;
    background-color: #d75d5a;
    color: white;
    padding: 15px;
  }
  
  .burger-menu {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
  }
}

@media (min-width: 769px) {
  .mobile-header {
    display: none;
  }
}

/* File Upload Styles */
.file-upload-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  margin: 20px 0;
  transition: border-color 0.3s ease;
}

.file-upload-area:hover {
  border-color: #d75d5a;
}

.file-upload-area.dragover {
  border-color: #d75d5a;
  background-color: rgba(215, 93, 90, 0.1);
}

.file-list {
  margin-top: 10px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 5px;
}

.file-remove {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-weight: bold;
}

/* Modal Styles */
.modal-content {
  font-family: Raleway, 'ralewaymedium';
  font-weight: 500;
}

.modal-header {
  background-color: #d75d5a;
  color: white;
}

.modal-title {
  font-family: Raleway, 'ralewaysemibold';
  font-weight: 600;
}

/* Utility Classes */
.text-primary {
  color: #d75d5a !important;
}

.bg-primary {
  background-color: #d75d5a !important;
}

.border-primary {
  border-color: #d75d5a !important;
}

/* Additional Admin Dashboard Styles */

/* Loading Spinner */
.lds-spinner {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-spinner div {
  transform-origin: 40px 40px;
  animation: lds-spinner 1.2s linear infinite;
}

.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 37px;
  width: 6px;
  height: 18px;
  border-radius: 20%;
  background: #d75d5a;
}

.lds-spinner div:nth-child(1) { transform: rotate(0deg); animation-delay: -1.1s; }
.lds-spinner div:nth-child(2) { transform: rotate(30deg); animation-delay: -1s; }
.lds-spinner div:nth-child(3) { transform: rotate(60deg); animation-delay: -0.9s; }
.lds-spinner div:nth-child(4) { transform: rotate(90deg); animation-delay: -0.8s; }
.lds-spinner div:nth-child(5) { transform: rotate(120deg); animation-delay: -0.7s; }
.lds-spinner div:nth-child(6) { transform: rotate(150deg); animation-delay: -0.6s; }
.lds-spinner div:nth-child(7) { transform: rotate(180deg); animation-delay: -0.5s; }
.lds-spinner div:nth-child(8) { transform: rotate(210deg); animation-delay: -0.4s; }
.lds-spinner div:nth-child(9) { transform: rotate(240deg); animation-delay: -0.3s; }
.lds-spinner div:nth-child(10) { transform: rotate(270deg); animation-delay: -0.2s; }
.lds-spinner div:nth-child(11) { transform: rotate(300deg); animation-delay: -0.1s; }
.lds-spinner div:nth-child(12) { transform: rotate(330deg); animation-delay: 0s; }

@keyframes lds-spinner {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.centerthisdiv {
  margin: 0 auto;
  text-align: center;
}

/* Burger Menu */
.burgermenupart {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
}

/* Alert Styles */
.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  z-index: 2;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert .close, .alert .closebtn {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.75rem 1.25rem;
  color: inherit;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Tab Styles from Original */
.boxTab {
  padding: 8px 16px;
  border-radius: 4px;
}

.nav-tabs-custom .nav-link {
  border: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.8em;
  color: #495057;
  background-color: #e9ecef;
  margin: 0 2px;
}

.nav-tabs-custom .nav-link.active {
  background-color: #d75d5a;
  color: white;
}

.nav-tabs-custom .nav-link:hover {
  background-color: #c44741;
  color: white;
}

/* Metro Button Styling */
.metroBtnRedStandard {
  background-color: #d75d5a;
  color: white;
  border: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.8em;
  padding: 8px 16px;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 0;
  -webkit-appearance: none;
  margin: 2px;
}

.metroBtnRedStandard:hover {
  background-color: #c44741;
  color: white;
}

/* Form Styling */
.form-group label {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.7em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.form-control {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  border: 1px solid #ced4da;
  border-radius: 0;
}

.form-control:focus {
  border-color: #d75d5a;
  box-shadow: 0 0 0 0.2rem rgba(215, 93, 90, 0.25);
}

/* Agent List Styling */
.agent-list .card {
  border-left: 4px solid #d75d5a;
}

.agent-list .card:hover {
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Timeline Posts Styling */
.timeline-posts .card {
  border-left: 4px solid #28a745;
}

.timeline-posts .card:hover {
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Mobile Header Override */
#mobiletopbar {
  display: none;
}

@media (max-width: 768px) {
  #mobiletopbar {
    display: block;
  }
  
  #sidebar-wrapper {
    display: none;
  }
  
  #page-content-wrapper {
    margin-left: 0;
    width: 100%;
  }
  
  .btn-metro {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .card-body .row .col-md-2 {
    text-align: center;
    margin-bottom: 10px;
  }
}

/* Collapse Navigation Styles */
.navbarSupportedContentClass {
  background-color: #d75d5a;
  padding: 0;
}

.navbarSupportedContentClass .nav-link {
  color: white !important;
  padding: 15px !important;
  margin: 0 !important;
  background-color: transparent !important;
  opacity: 1 !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbarSupportedContentClass .nav-link:hover {
  background-color: rgba(255,255,255,0.1) !important;
}

/* File Icon Styling */
.containerIG {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 20px;
  align-items: stretch;
}

.containerIGcon {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.containerIGcon img {
  width: 100%;
  height: auto;
}

.containerIGcon .btn {
  position: absolute;
  top: 10%;
  left: 90%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  color: red;
  font-size: 26px;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  text-align: center;
}
