.tools-container {
  min-height: calc(100vh - 40px);
}

.tools-main {
  margin: 30px 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: #003366;
}

.tool-card-header i {
  width: 28px;
  font-size: 24px;
  text-align: center;
}

.tool-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.tool-card p {
  margin: 0 0 20px;
  color: #495057;
}

.tool-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

.tool-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0 !important;
  margin: 0;
  padding: 12px 10px;
  box-sizing: border-box;
  font-size: 0.98rem;
}

.btn-tool {
  background-color: #004080 !important;
  border-color: #002d5a !important;
}

.btn-secondary-tool {
  background-color: #495057 !important;
  border-color: #343a40 !important;
}

.btn-secondary-tool:hover {
  background-color: #343a40 !important;
}

@media (max-width: 768px) {
  .tools-grid,
  .tool-actions {
    grid-template-columns: 1fr;
  }

  .tool-card {
    padding: 20px;
  }
}
