/* Stili base */
body {
  background: #006a71;
  min-height: 100vh;
}

.main-container {
  margin-top: 60px;
}

/* Header e navigazione */
.main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar-back {
  background: #006a71 !important;
  border: none;
}

/* Cards e contenuti */
.content-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* Display XML e codice */
.xml-display {
  background: #1e1e1e;
  border-radius: 10px;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: auto;
  white-space: nowrap;
}

.xml-display pre {
  white-space: pre;
  word-wrap: normal;
}

pre code {
  background: transparent !important;
  padding: 0 !important;
}

.hljs {
  background: #1e1e1e !important;
  color: #d4d4d4 !important;
  padding: 20px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* Icone portfolio */
.portfolio-icon {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-icon:hover {
  transform: scale(1.1);
}

/* Media queries responsive */
@media (max-width: 1200px) {
  .display-4 {
    font-size: 2.5rem !important;
  }
}

@media (max-width: 992px) {
  .display-4 {
    font-size: 2rem !important;
  }

  .lead {
    font-size: 1rem !important;
  }

  .content-card {
    margin: 0 10px;
  }
}

@media (max-width: 768px) {
  .main-container {
    margin-top: 50px;
  }

  .display-4 {
    font-size: 1.8rem !important;
  }

  .main-header {
    padding: 20px !important;
  }

  .content-card {
    padding: 20px !important;
    margin: 0 5px;
  }

  .xml-display {
    max-height: 50vh;
  }

  .portfolio-icon {
    width: 35px;
    height: 35px;
  }

  .hljs {
    font-size: 12px !important;
    padding: 15px !important;
  }
}

@media (max-width: 576px) {
  .display-4 {
    font-size: 1.5rem !important;
  }

  .lead {
    font-size: 0.9rem !important;
  }

  .portfolio-icon {
    width: 30px;
    height: 30px;
  }

  .xml-display {
    max-height: 40vh;
  }

  .hljs {
    font-size: 11px !important;
    padding: 10px !important;
  }

  .container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

@media (max-width: 480px) {
  .display-4 {
    font-size: 1.3rem !important;
  }

  .main-header {
    padding: 15px !important;
  }

  .content-card {
    padding: 15px !important;
  }
}
