/* /projects/survivable_hybrid_cloud/common/css/common.css */

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f3f4f6;
  line-height: 1.5;
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */
.w-full {
  width: 100%;
}
.w-auto {
  width: auto;
}
.h-5 {
  height: 1.25rem;
}
.w-5 {
  width: 1.25rem;
}
.h-6 {
  height: 1.5rem;
}
.w-6 {
  width: 1.5rem;
}
.h-10 {
  height: 2.5rem;
}
.max-w-7xl {
  max-width: 80rem;
}

.flex {
  display: flex;
}
.flex-1 {
  flex: 1;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.shrink-0 {
  flex-shrink: 0;
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* ==========================================
   SPACING
   ========================================== */
.p-2 {
  padding: 0.5rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mb-4 {
  margin-bottom: 1rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}
.space-y-2 > * + * {
  margin-top: 0.5rem;
}

/* ==========================================
   COLORS & BACKGROUNDS
   ========================================== */
.bg-white {
  background: #ffffff;
}
.bg-gray-50 {
  background: #f9fafb;
}
.text-gray-600 {
  color: #4b5563;
}
.text-gray-700 {
  color: #374151;
}
.text-gray-800 {
  color: #1f2937;
}

.border-b {
  border-bottom: 1px solid #e5e7eb;
}
.border-t {
  border-top: 1px solid #e5e7eb;
}
.border-gray-200 {
  border-color: #e5e7eb;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-3xl {
  font-size: 1.875rem;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.text-center {
  text-align: center;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================
   EFFECTS
   ========================================== */
.rounded-md {
  border-radius: 0.375rem;
}
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.transition-colors {
  transition-property: color, background-color;
  transition-duration: 0.15s;
  transition-timing-function: ease-in-out;
}

/* ==========================================
   INTERACTIVE STATES
   ========================================== */
.hover\:bg-gray-100:hover {
  background: #f3f4f6;
}
.hover\:bg-blue-50:hover {
  background: #eff6ff;
}
.hover\:text-blue-600:hover {
  color: #2563eb;
}

.focus\:outline-none:focus {
  outline: none;
}
.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
.focus\:ring-blue-500:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (min-width: 768px) {
  .md\:text-2xl {
    font-size: 1.5rem;
  }
}

/* ==========================================
   HAMBURGER MENU SPECIFIC
   ========================================== */
#hamburgerMenu {
  min-width: 280px;
  background: linear-gradient(to bottom, #eff6ff, #dbeafe);
  padding: 0.75rem;
}

#menuList {
  padding: 0;
  list-style: none;
}

/* Menu card styling */
.menu-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  margin-bottom: 0.5rem;
}

.menu-card:hover {
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.15);
}

/* Main menu item container */
.menu-main-container {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Main menu link */
.menu-main-link {
  padding: 0.75rem 1rem;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.menu-main-link:hover {
  color: #2563eb;
}

/* Toggle button */
.menu-toggle-btn {
  padding: 0.75rem 1rem;
  color: #6b7280;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

.menu-toggle-btn:hover {
  color: #2563eb;
}

.menu-toggle-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.menu-toggle-btn[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

/* Submenu */
.menu-submenu {
  margin: 0;
  padding: 0.5rem 0.75rem 0.75rem 1rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  list-style: none;
}

.menu-submenu li {
  margin-bottom: 0.25rem;
}

/* Submenu link */
.menu-sublink {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #4b5563;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.menu-sublink:hover {
  background: #dbeafe;
  color: #1e40af;
  padding-left: 1rem;
}

/* Mobile menu dropdown */
#mobileMenu {
  position: absolute;
  z-index: 1000;
  width: 100%;
  max-width: 320px;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   CONTENT STYLING
   ========================================== */
.content-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-box {
  padding: 1rem;
  border-radius: 0.375rem;
  border-left: 4px solid;
  margin-top: 1.5rem;
  line-height: 1.8;
}

.info-box.blue {
  background: #f0f9ff;
  border-color: #3b82f6;
}

.info-box.blue h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e40af;
}

.info-box.blue ul,
.info-box.blue ol {
  color: #374151;
}

.info-box.yellow {
  background: #fef3c7;
  border-color: #f59e0b;
}

.info-box.yellow h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #92400e;
}

.info-box.yellow ul,
.info-box.yellow ol {
  color: #374151;
}

.info-box ul,
.info-box ol {
  margin-left: 1.5rem;
}

.info-box code {
  background: white;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: "Courier New", monospace;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.loading-message {
  padding: 0.75rem;
  color: #9ca3af;
  text-align: center;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
