/* ================================
   ATARAXIS RX GLOBAL STYLE
================================ */

/* Base */
body {
  font-family: 'Manrope', sans-serif;
  background: #F7FAFA;
  color: #0F172A;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

/* Fade In */
@keyframes fadeIn {
  to { opacity: 1; }
}

/* Gold Accent */
.ataraxis-accent {
  color: #C7A35A;
}

/* Luxury Button */
.btn-ataraxis {
  position: relative;
  overflow: hidden;
  background: #0F172A;
  color: white;
  padding: 1rem 3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.5s ease;
}

.btn-ataraxis:hover {
  background: #C7A35A;
  color: #0F172A;
}

/* Gold shimmer */
@keyframes goldShimmer {
  0% { left: -200px; }
  100% { left: 200px; }
}

.btn-ataraxis::after {
  content: "";
  position: absolute;
  top: 0;
  left: -200px;
  width: 200px;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(199,163,90,0.35),
    transparent
  );
  animation: goldShimmer 6s linear infinite;
}

/* Input Styling */
.ataraxis-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #0F172A;
  background: transparent;
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.3s ease;
}

.ataraxis-input:focus {
  border-color: #C7A35A;
}

/* Textarea */
.ataraxis-textarea {
  width: 100%;
  border: 1px solid #0F172A;
  padding: 1rem;
  background: white;
  outline: none;
  min-height: 120px;
  transition: border-color 0.3s ease;
}

.ataraxis-textarea:focus {
  border-color: #C7A35A;
}

/* Labels */
.ataraxis-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.4);
  margin-bottom: 0.5rem;
  display: block;
}

/* Sidebar */
.ataraxis-sidebar {
  width: 240px;
  background: white;
  border-right: 1px solid #eee;
  padding: 3rem 2rem;
}

/* Breadcrumb */
.ataraxis-breadcrumb {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.4);
  margin-bottom: 2rem;
}

/* Table */
.ataraxis-table {
  width: 100%;
  border-collapse: collapse;
}

.ataraxis-table th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 1rem;
  color: rgba(15,23,42,0.4);
  border-bottom: 1px solid #eee;
}

.ataraxis-table td {
  padding: 1rem;
  border-bottom: 1px solid #f1f1f1;
}

.ataraxis-table tr:hover {
  background: #fafafa;
}


/* ========================= */
/* MOBILE OPTIMIZATION */
/* ========================= */

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .container,
    .content,
    .wrapper,
    .main-content {
        padding: 10px !important;
    }

    /* Sidebar onder elkaar */
    .sidebar {
        width: 100% !important;
        position: relative !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Flex layouts stacken */
    .row,
    .flex,
    .d-flex {
        flex-direction: column !important;
    }

    /* Tabellen scrollbaar maken */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Buttons full width */
    .btn,
    button {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Form inputs */
    input,
    select,
    textarea {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Headings iets kleiner */
    h1 { font-size: 22px; }
    h2 { font-size: 20px; }
}

.table-wrapper {
    overflow-x: auto;
}
/* ===================================== */
/* HARD MOBILE OVERRIDE (FINAL FIX) */
/* ===================================== */

@media (max-width: 768px) {

    /* Kill Tailwind container limits */
    [class*="max-w-"] {
        max-width: 100% !important;
    }

    /* Reduce massive vertical spacing */
    [class*="py-20"] {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    [class*="px-6"] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Force ALL grids to 1 column */
    * {
        grid-template-columns: 1fr !important;
    }

    /* Force ALL flex to vertical */
    * {
        flex-direction: column !important;
    }

    /* Remove fixed widths */
    * {
        min-width: 0 !important;
        width: 100% !important;
    }

    /* Buttons bigger */
    .btn-ataraxis {
        padding: 1rem !important;
        font-size: 0.9rem !important;
        width: 100% !important;
    }

    /* Tables scroll properly */
    table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap;
    }

    /* Improve input tap size */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }
}
