@tailwind base;
@tailwind components;
@tailwind utilities;

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* === BODY === */ 

.navbar, .btm-nav {
    min-height: 3.5rem !important;
    max-height: 3.5rem !important;
}

.table-row-section-title {
    text-align: center;
    text-transform: uppercase;
}

thead.table-row-header {
    font-size: medium;
}

/* Make autofill text on input fields transparent instead of mustard-yellow */
input:-webkit-autofill,
input:-webkit-autofill:focus {
    transition: background-color 600000s 0s, color 600000s 0s;
}
input[data-autocompleted] {
    background-color: transparent !important;
}

#total-points-stat {
    --tw-border-opacity: 0 !important;
    border-right-width: 0px !important;
}

.p-b-4rem {
    padding-bottom: 4rem;
}

#todays-habits-sticky-point-bar {
    --tw-bg-opacity: 1;
    background-color: var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));
    position: sticky;
    padding-top: 0.5rem;
    top: 0;
    width: 100%;
    z-index: 1;
}

#dashboard-todays-statistics-point-bar {
    --tw-bg-opacity: 1;
    background-color: var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));
    text-align: center;
    width: 100%;
}

.text-right {
    text-align: right;
}

.pr-4 {
    padding-right: 1rem;
}

.prose {
    max-width: 100%;
}

.prose p {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.prose p.m-0 {
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 0;
    margin-left: 0;
}

.mt-minus-2 {
    margin-top: -0.5rem;
}

.h-full {
    height: 100%;
}

td.no-padding {
    padding: 0 !important;
    a {
        padding: 0.5rem 1rem;
    }
}

/* Study accordion More / Less (Preview / Full) button styles */
.summary-preview {
    height: 1.5rem;
    overflow: hidden;
  }
.summary-full {
    padding-top: 10px;
}

.tabs-boxed {
    border-radius: 0;
}
.to-bg-primary {
    --tw-bg-opacity: 1;
    --tw-gradient-to: oklch(var(--b1));
}

/* Horizontally scrolling list of books */
.carousel {
    overflow-x: auto;
    padding: 20px;
  }
  
.carousel-item {
    margin-right: 20px;
}
  
.carousel-item:last-child {
    margin-right: 0;
}

.carousel.pl-0 {
    padding-left: 0;
}
  
.bottom-spacer {
    margin-bottom: 4rem;
}
    
.carousel {
    justify-content: start;
}
  
.tooltip-pointer {
    position: relative;
}

.tooltip-pointer::after {
    content: "";
    position: absolute;
    bottom: -20px;
    right: 36px;
    border-width: 10px;
    border-style: solid;
    border-color: rgb(38 38 38/var(--tw-bg-opacity)) transparent transparent transparent; 
}

.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-4px);
    }
    40% {
        transform: translateX(4px);
    }
    60% {
        transform: translateX(-4px);
    }
    80% {
        transform: translateX(4px);
    }
    100% {
        transform: translateX(0);
    }
}

.diff-resizer {
    width: 144px;
}

.highlighted {
    background-color: oklch(0.76172 0.089459 200.027); /* highlight color for Quotes of Studies */
    border-radius: 0.5rem;
    .bg-gradient-to-b {
        background: none;
    }
}

.dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 2px;
}

.dot__sm {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 1px;
}
  
.green-dot {
    background-color: #34C759;
}
  
.grey-dot {
    background-color: #ccc;
}
  
/* Monthly statistics calendar */
.monthly-calendar {
    width: 100%;
    text-align: center;
  }
  
  .monthly-calendar table {
    border-collapse: collapse;
    width: 100%;
  }
  
  .monthly-calendar th,.monthly-calendar td {
    border: 1px solid #ddd;
    padding: 0;
  }
  
  .monthly-calendar table td {
    justify-content: center;
  }
  
  .day-container {
    position: relative;
    display: flex;
    justify-content: center;
  }
  
  .day-box {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    /* border-radius: 50%; */ /* Do we like circles or rounded squares? */
    margin: 5px;
    display: flex;
    justify-content: center;
  }
  
  .day-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
  }  
  
  .points_200 {
    background-color: oklch(0.87497 0.24613 297.068);
  }
  
  .points_180 {
    background-color: oklch(0.85135 0.20755 275.936);
  }
  
  .points_160 {
    background-color: oklch(0.82757 0.16831 255.132);
  }
  
  .points_140 {
    background-color: oklch(0.80364 0.12843 235.131);
  }
  
  .points_120 {
    background-color: oklch(0.77953 0.08834 216.508);
  }
  
  .points_100 {
    background-color: oklch(0.76172 0.089459 200.027);
  }
  
  .points_80 {
    background-color: oklch(0.76172 0.089459 200.027);
    opacity: 0.8;
  }
  
  .points_60 {
    background-color: oklch(0.76172 0.089459 200.027);
    opacity: 0.6;
  }
  
  .points_40 {
    background-color: oklch(0.76172 0.089459 200.027);
    opacity: 0.4;
  }
  
  .points_low {
    background-color: oklch(0.76172 0.089459 200.027);
    opacity: 0.2;
  }
  
  .points_0 {
    background-color: #ccc;
  }

  h1 {
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    gap: .5rem;
    line-height: 1.75rem;
  }
  @media (min-width: 1024px) {
    h1 {
      font-size: 1.875rem;
      line-height: 2.25rem;
      margin-bottom: 1rem;
    }
  }
