.user-info {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
}

.logout-button {
  margin-left: 10px;
  padding: 5px 10px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.logout-button:hover {
  background-color: #d32f2f;
}

.flash-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  max-width: 80%;
  z-index: 1000;
  animation: slideDown 0.5s ease-out;
}

.flash-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash-error, .flash-alert {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.flash-notice {
  background-color: #cce5ff;
  color: #004085;
  border: 1px solid #b8daff;
}

.close-button {
  background: none;
  border: none;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%) translateX(-50%);
    opacity: 0;
  }
  to {
    transform: translateY(0) translateX(-50%);
    opacity: 1;
  }
}

/* services */

body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f5f7;
  margin: 0;
  padding: 20px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 30px;
}
h1 {
  color: #172b4d;
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 20px;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.service-name {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 12px;
  color: #172b4d;
}
.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
  margin-right: 10px;
}
.badge-up {
  background-color: #36B37E;
  color: white;
}
.badge-down {
  background-color: #FF5630;
  color: white;
}
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 14px;
}
.btn-activate {
  background-color: #0052CC;
  color: white;
}
.btn-activate:hover {
  background-color: #0747A6;
}
.btn-active {
  background-color: #6B778C;
  color: white;
  cursor: not-allowed;
}
.service-desk-container {
  margin-top: 40px;
  padding: 20px;
  background-color: #DEEBFF;
  border-radius: 8px;
  border: 1px solid #B3D4FF;
}
.service-desk-title {
  color: #0747A6;
  font-size: 20px;
  margin-bottom: 15px;
}
.service-desk-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0052CC;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}
.service-desk-link:hover {
  background-color: #0747A6;
}
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

  .loader {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 5px;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-activate:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.calculator-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 30px;
}

.calculator-title {
  color: #172b4d;
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: bold;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.calculator-section {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e0e0e0;
}

.section-title {
  color: #172b4d;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
}

.input-group {
  margin-bottom: 16px;
  width: 100%;
}

.input-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #172b4d;
  margin-bottom: 6px;
}

.input-field {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
  box-sizing: border-box;
  min-height: 36px;
}

.input-field:focus {
  border-color: #4c9aff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(76, 154, 255, 0.2);
}

.calculate-button {
  background-color: #0052cc;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  min-width: 120px;
}

.calculate-button:hover {
  background-color: #0747a6;
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  min-height: 40px;
}

.loading-indicator {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loading-indicator.visible {
  display: flex;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0052cc;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

.spinner-text {
  color: #172b4d;
  font-size: 14px;
}

.results-container {
  margin-top: 30px;
}

.results-title {
  color: #172b4d;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

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

.result-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e0e0e0;
}

.result-label {
  font-size: 14px;
  color: #172b4d;
  margin-bottom: 8px;
  font-weight: 500;
}

.result-value {
  font-size: 20px;
  color: #172b4d;
  font-weight: bold;
}

.total-value {
  color: #0052cc;
  font-size: 24px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .calculator-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .calculator-container {
    padding: 20px;
    margin: 10px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }
}