/* #region Root Variables */

:root {
  --primary-color: #3a7bd5;
  --secondary-color: #00d2ff;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;
  --text-color: #374151;
  --text-light: #9ca3af;
  --border-color: rgba(72, 101, 230, 0.1);
  --transition-speed: 0.3s;
}

/* #endregion */

/* #region Tenders Main Container */ 

.mdTendersContainer {
  padding: 2rem 2rem;
}

.mdTendersContainerWrapper {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}

.mdTendersContainer {
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.mdTendersTitle {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
  letter-spacing: 0.5px;
  margin-top: 30px;
}

.mdTendersTitle::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #3498db;
  border-radius: 2px;
}

/* #endregion */

/* #region Tenders Grid */

.mdTendersGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 3rem;
}

.mdTenderCard {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all var(--transition-speed);
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(20px);
}

.mdTenderCard.mdAnimateIn {
  opacity: 1;
  transform: translateY(0);
}

.mdTenderCard:hover {
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.mdTenderCard.hidden {
  display: none;
}

/* Staggered animations */

.mdTenderCard:nth-child(1).mdAnimateIn { transition-delay: 0.1s; }
.mdTenderCard:nth-child(2).mdAnimateIn { transition-delay: 0.2s; }
.mdTenderCard:nth-child(3).mdAnimateIn { transition-delay: 0.3s; }
.mdTenderCard:nth-child(4).mdAnimateIn { transition-delay: 0.4s; }
.mdTenderCard:nth-child(5).mdAnimateIn { transition-delay: 0.5s; }
.mdTenderCard:nth-child(6).mdAnimateIn { transition-delay: 0.6s; }
.mdTenderCard:nth-child(n+7).mdAnimateIn { transition-delay: 0.7s; }

/* #endregion */

/* #region Card Header */

.mdTenderCardHeader {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(90deg, #361877 0%, #111866 50%, #1b0942 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.mdTenderHeaderContent {
  flex: 1;
  padding-right: 1.5rem;
  position: relative;
  z-index: 2;
}

.mdTenderTitleContainer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.mdTenderTitle {
  font-size: 1.8rem;
  font-weight: 700;
  color: rgb(255, 255, 255);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
  letter-spacing: 2px;
}

.mdCountdownContainer {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  min-width: 140px;
  position: relative;
  z-index: 2;
}

.mdCountdownBadge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  width: auto;
}

.mdCountdownBadge.urgent {
  background: rgba(239, 68, 68, 0.2);
  animation: pulse 1.5s ease-in-out infinite;
}

.mdCountdownBadge.medium {
  background: rgba(245, 158, 11, 0.2);
}

.mdCountdownBadge.normal {
  background: rgba(16, 185, 129, 0.15);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.mdCountdownBadge i {
  margin-right: 0.75rem;
  position: relative;
  z-index: 2;
  font-size: 1.2rem;
}

.mdCountdownText {
  position: relative;
  z-index: 2;
}

.mdTimeZone {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-left: 0.5rem;
}

.mdBtnViewTender {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgb(255, 255, 255);
  color: rgb(8, 46, 95);  
  box-shadow: 0 4px 8px rgba(76, 149, 246, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
  margin-bottom: 5px;
}

.mdBtnViewTender i {
  font-size: 1rem;
}

.mdBtnViewTender:hover {
  box-shadow: 0 6px 12px rgba(76, 149, 246, 0.25);
  background: rgb(83, 45, 255);
  color: white;
  border-color: rgba(42, 102, 255, 0.2);
  transition: all 0.3s;
}

/* #endregion */

/* #region Card Body */

.mdTenderCardBody {
  padding: 1.5rem;
  display: flex;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 242, 245, 0.9) 100%);
  position: relative;
  overflow: hidden;
}

.mdTenderCardBody::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(71, 118, 230, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
}

.mdTenderInfoContainer {
  flex: 1;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-speed);
}

.mdTenderInfoContainer:hover {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.mdInfoRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  gap: 1rem;
}

.mdInfoRow:last-child {
  border-bottom: none;
}

.mdInfoLabel {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.85rem;
  flex-shrink: 0;
  min-width: 100px;
  line-height: 1.4;
}

.mdInfoValue {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: right;
  flex: 1;
  word-wrap: break-word;
  line-height: 1.4;
}

/* #endregion */

/* #region Documents Section */

.mdTenderDocuments {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 242, 245, 0.9) 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.mdDocumentsTitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 1rem 0;
  padding-left: 0.5rem;
  border-left: 3px solid var(--primary-color);
}

.mdDocumentsList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.mdDocumentItem {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all var(--transition-speed);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mdDocumentItem:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.mdDocumentIcon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.mdDocumentIcon i {
  font-size: 1rem;
}

.mdDocumentIcon i.fa-file-pdf { color: #e53935; }
.mdDocumentIcon i.fa-file-word { color: #1565c0; }
.mdDocumentIcon i.fa-file-excel { color: #2e7d32; }
.mdDocumentIcon i.fa-file-image { color: #9c27b0; }
.mdDocumentIcon i.fa-file-archive { color: #ff9800; }
.mdDocumentIcon i { color: var(--primary-color); }

.mdDocumentInfo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.mdDocumentName {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* #endregion */

/* #region No Results/Items Messages */

.mdNoResultsMessage,
.mdNoItemsContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  margin: 2rem auto;
  max-width: 500px;
  text-align: center;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.mdNoResultsIcon,
.mdNoItemsIcon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mdNoResultsMessage h3,
.mdNoItemsMessage h3,
.mdNoItemsTitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 1rem 0;
}

.mdNoResultsMessage p,
.mdNoItemsMessage p,
.mdNoItemsDescription {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.mdBtnClearSearch,
.mdNoItemsButton {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mdBtnClearSearch:hover,
.mdNoItemsButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

/* #endregion */

/* #region Responsive Design */

/* #region 4K Screens */

@media (min-width: 2560px) {
  .mdTendersContainer {
    max-width: 2400px;
    margin: 0 auto;
    padding: 3rem;
  }

  .mdTendersGrid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .mdTenderTitle {
    font-size: 2.2rem;
  }

  .mdInfoLabel,
  .mdInfoValue {
    font-size: 1.1rem;
  }
}

/* #endregion */

/* #region Full HD+ */

@media (min-width: 1920px) and (max-width: 2559px) {
  .mdTendersContainer {
    max-width: 1800px;
    margin: 0 auto;
  }

  .mdTendersGrid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .mdTenderTitle {
    font-size: 2rem;
  }
}

/* #endregion */

/* #region Laptop L */

@media (min-width: 1440px) and (max-width: 1919px) {
  .mdTendersGrid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .mdTenderTitle {
    font-size: 1.9rem;
  }
}

/* #endregion */

/* #region Laptop M */

@media (min-width: 1366px) and (max-width: 1599px) {
  .mdTendersGrid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* #endregion */

/* #region Laptop */

@media (min-width: 1200px) and (max-width: 1365px) {
  .mdTendersGrid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* #endregion */

/* #region Critical 992px-999px Breakpoint Fix - Hamburger Menu Uyumlu */

@media (min-width: 992px) and (max-width: 999px) {

  .mdTendersContainer {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem;
    margin-left: 0;
    margin-right: 0;
  }

  .mdTendersGrid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
  }

  .mdTenderCard {
    width: 100%;
    max-width: 100%;
  }

  .mdTenderTitle {
    font-size: 1.6rem;
  }

  .mdTenderCardBody {
    gap: 1.5rem;
  }

  .mdDocumentsList {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* #endregion */

/* #region 1000px-1199px Aralığı - Normal Desktop Layout */

@media (min-width: 1000px) and (max-width: 1199px) {
  .mdTendersContainer {
    width: 100%;
    max-width: none;
    padding: 1.5rem;
    margin-left: 0;
    margin-right: 0;
  }

  .mdTendersGrid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
  }

  .mdTenderCard {
    width: 100%;
    max-width: 100%;
  }

  .mdTenderTitle {
    font-size: 1.6rem;
  }

  .mdTenderCardBody {
    gap: 1.5rem;
  }

  .mdDocumentsList {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* #endregion */

/* #region Tablet L */

@media (min-width: 892px) and (max-width: 991px) {
  .mdTendersContainer {
    width: 100%;
    padding: 1.25rem;
  }

  .mdTendersGrid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .mdTenderTitle {
    font-size: 1.6rem;
  }

  .mdTenderCardBody {
    gap: 1.5rem;
  }

  .mdDocumentsList {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* #endregion */

/* #region Tablet */

@media (min-width: 768px) and (max-width: 999px) {
  .mdTenderCardHeader {
    padding: 1.25rem;
  }

  .mdTenderTitle {
    font-size: 1.5rem;
  }

  .mdCountdownBadge {
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
  }

  .mdBtnViewTender {
    width: 45px;
    height: 45px;
  }
}

/* #endregion */

/* #region Mobile L and below */

@media (max-width: 891px) {
  .mdTendersContainer {
    padding: 1rem 0.75rem;
  }

  .mdTendersGrid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem;
  }

  .mdTenderCardHeader {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .mdTenderHeaderContent {
    padding-right: 0;
    width: 100%;
  }

  .mdTenderTitleContainer {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .mdTenderTitle {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }

  .mdCountdownContainer {
    width: 100%;
    justify-content: space-between;
  }

  .mdCountdownBadge {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  .mdBtnViewTender {
    width: 45px;
    height: 45px;
  }

  .mdTenderCardBody {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .mdTenderInfoContainer {
    padding: 0.75rem;
  }

  .mdInfoRow {
    padding: 0.6rem 0;
  }

  .mdInfoLabel {
    font-size: 0.8rem;
    min-width: 80px;
  }

  .mdInfoValue {
    font-size: 0.8rem;
  }

  .mdDocumentsList {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .mdDocumentItem {
    padding: 0.6rem;
  }

  .mdDocumentIcon {
    width: 28px;
    height: 28px;
  }

  .mdDocumentIcon i {
    font-size: 0.9rem;
  }

  .mdDocumentName {
    font-size: 0.8rem;
  }

  .mdSearchInput {
    padding: 0.8rem 2.5rem;
    font-size: 0.9rem;
  }
}

/* #endregion */

/* #region Mobile S */

@media (max-width: 413px) {
  .mdTendersContainer {
    padding: 0.75rem 0.5rem;
  }

  .mdTendersGrid {
    padding: 0.25rem;
  }

  .mdTenderCard {
    border-radius: 12px;
  }

  .mdTenderCardHeader {
    padding: 0.75rem;
  }

  .mdTenderTitle {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
  }

  .mdTenderInfo {
    padding: 0.5rem;
  }

  .mdTenderNumber {
    font-size: 0.8rem;
  }

  .mdTenderDescription {
    font-size: 0.85rem;
  }

  .mdCountdownBadge {
    padding: 0.5rem;
    font-size: 0.75rem;
  }

  .mdCountdownBadge i {
    font-size: 1rem;
    margin-right: 0.5rem;
  }

  .mdBtnViewTender {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .mdBtnViewTender i {
    font-size: 0.9rem;
  }

  .mdTenderCardBody {
    padding: 0.75rem;
  }

  .mdTenderInfoContainer {
    padding: 0.5rem;
    border-radius: 8px;
  }

  .mdInfoRow {
    padding: 0.5rem 0;
    gap: 0.5rem;
  }

  .mdInfoLabel {
    font-size: 0.75rem;
    min-width: 70px;
  }

  .mdInfoValue {
    font-size: 0.75rem;
  }

  .mdTimeZone {
    font-size: 0.65rem;
    margin-left: 0.25rem;
  }

  .mdTenderDocuments {
    padding: 0.75rem;
  }

  .mdDocumentsTitle {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .mdDocumentItem {
    padding: 0.5rem;
    border-radius: 6px;
  }

  .mdDocumentIcon {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
  }

  .mdDocumentIcon i {
    font-size: 0.8rem;
  }

  .mdDocumentName {
    font-size: 0.75rem;
  }

  .mdSearchInput {
    padding: 0.7rem 2.2rem;
    font-size: 0.85rem;
  }

  .mdSearchIcon {
    left: 0.7rem;
    font-size: 0.85rem;
  }

  .mdClearSearch {
    right: 0.7rem;
  }

  .mdSearchResults {
    margin-bottom: 0.5rem;
  }

  .mdResultCount {
    font-size: 0.8rem;
  }

  .mdNoResultsMessage,
  .mdNoItemsContainer {
    padding: 2rem 1rem;
    margin: 1rem auto;
  }

  .mdNoResultsIcon,
  .mdNoItemsIcon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .mdNoResultsMessage h3,
  .mdNoItemsTitle {
    font-size: 1rem;
  }

  .mdNoResultsMessage p,
  .mdNoItemsDescription {
    font-size: 0.85rem;
  }

  .mdBtnClearSearch,
  .mdNoItemsButton {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 20px;
  }
}

/* #endregion */

/* #endregion */ 