
@charset "UTF-8";
body {
    margin: 0;
    font-family: Arial, sans-serif;

  
    /* Use the image we generated */
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.6)), 
      url('../images/pickxchangedesktop.png'); 
    
    /* This keeps the icons from moving when you scroll your picks */
    background-attachment: fixed; 
    
    /* This ensures the pattern tiles nicely or covers the screen */
    background-size: 400px; /* Adjust this number to make the icons larger or smaller */
    background-repeat: repeat;
    
    /* A tiny bit of background color just in case the image takes a second to load */
    /*background-color: #fdfdfb; */
    background-color: #ffffff;
}

/* Tip: Give your pick-cards a solid background so they "pop" off the pattern */
.pick-card {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 15px;
}


header {
    background-color: #003366;
    color: white;
    padding: 10px 20px;
}

/* 1. Make the header container flexible */
.title-area {
    display: flex;
    flex-wrap: wrap;       /* This is the magic: allow wrapping! */
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

/* 2. Style the Title so it doesn't get crushed */
.title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
}

.tm {
    font-size: 0.6em;       /* Adjust size to your liking */
    vertical-align: super;  /* Keeps it as a superscript */
    margin-left: -2px;      /* 👈 The magic: Negative margin pulls it left */
    font-weight: normal;    /* Often looks better if not as bold as the title */
}

.shimmer-text {
    font-weight: bold;
    /*color: #007bff;*/
    color: transparent;
    text-decoration: none;
    /*background: linear-gradient(90deg, #007bff, #55aaff, #007bff);*/
    background: linear-gradient(90deg, #007bff 0%, #18de61 50%, #007bff 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    /* This makes the color move slowly */
    animation: shine 5s linear infinite;

    text-decoration: underline; /* Keeps it looking like a link */
    text-decoration-color: #007bff; /* Keeps the underline blue */
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* 3. Make the Menu Bar wrap its items */
.menu-bar {
    display: flex;
    flex-wrap: wrap;       /* Allow dropdowns to wrap if the screen is tiny */
    /* Space between the buttons.  Reduce the second value (vertical gap) to 5px or even 0 */
    gap: 4px 10px; /*2px 10px;    /* was 5px 10px; */
    align-items: center;             
}

/* Ensure the dropdown containers don't have extra bottom margin */
.menu-bar .dropdown {
    margin-bottom: 0; 
    display: inline-block; /* Keeps them behaving like buttons */
    vertical-align: top; 
    /*margin: 0 !important;   /* Kill any inherited margins /
    padding: 2px 0;         /* Minimal padding for breathing room /
    display: flex;          /* Ensures the button inside behaves well */
}

/* 4. Ensure buttons look good when stacked */
.menu-button {
    /*white-space: nowrap;*/   /* Keep "Contacts & Groups" on one line inside the button */
    margin: 0 !important; /* Remove any default margins */
}

/* 5. Mobile Optimization (for screens smaller than 600px) */
@media (max-width: 600px) {
    .title-area {
        flex-direction: column; /* Stack Title on top of the Menu */
        align-items: flex-start;
    }

    .menu-bar {
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
    }
}

@media (max-width: 400px) {
    .menu-button {
        font-size: 14px; /* Slightly smaller text for very narrow phones */
        padding: 8px 12px;
    }
}

nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
}

nav a:hover {
    text-decoration: underline;
}

.auth-buttons button {
    color: blue;
    background-color: white;
    border: 1px solid blue;
    padding: 5px 10px;
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 16px;
}

.auth-buttons button:hover {
    background-color: lightgray;
}

main {
    padding: 20px;
}

.dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dialog.hidden {
    display: none;
}

.dialog-content {
    background: #a9e7d4;
    padding: 20px;
    border-radius: 8px;
    width: 300px;

    max-height: 90vh;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.dialog-content h2 {
    margin: 0;
    color: #003366;
}

.dialog-content label {
    font-weight: bold;
}

.dialog-actions button {
    width: 100%;
    color: white;
    background-color: #003366;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.dialog-actions button:hover {
    background-color: #0055a5;
}

/* The "Gold Standard" for all PickXchange Dialogs */
.standard-dialog {
    background-color: #a9e7d4 !important; /* Your signature mint */
    border: 1px solid #999 !important;     /* That professional thin line */
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
    padding: 25px;
}

/* Center the Add Pick dialog */
.ap-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the dialog */
    background: #a9e7d4;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 360px;
}

/* Additional CSS styles for new forms */
#add-item-form, #search-form, #contactForm {
  padding: 20px;
  margin-bottom: 5px;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  display: block;
  /*background: #f4f4f4;*/
  background: #a9e7d4;
  border: 1px solid #ddd;
  border-radius: 8px;
}

#add-item-form h2, #search-form h2 {
  color: #003366;
}
/*
#add-pick-panel {
  margin-bottom: 5px;
  padding: 20px;
  margin: 20px auto;
  margin-top: 0px;
  width: 80%;            /* like contact form /
  background: #a9e7d4;
  border: 1px solid #ddd;
  border-radius: 8px;
}*/
/* Specific layout fix for the main Add a Pick Dropdown */
/* BLOCK 1: The Outer Dialog Container (Controls the size and position of the whole window) */
#add-pick-panel {
    width: 80%;            /* Keeps the entire dialog bounded and away from the window edges */
    margin: 20px auto;     /* Centering trick: balances the empty space on the left and right sides */
    margin-top: 0px;
    margin-bottom: 5px;
    padding: 20px;         /* Adds breathing room inside the panel so fields don't touch its borders */
    background: #a9e7d4;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box; /* Forces the entire box to respect the 80% boundary limit */
}

/* BLOCK 2: The Inner Dropdown Element (Controls just the Pick Type select box) */
#add-pick-panel #pick-type {
    display: block;        /* Forces the dropdown box down to its own line below its label */
    width: 100%;           /* Stretches it out to perfectly match the width of your text fields */
    box-sizing: border-box;/* Ensures its internal padding doesn't break its layout bounds */
    padding: 6px 10px;     /* Gives it that perfect matching vertical height cushion */
    font-size: 0.95rem;   
    line-height: 1.2;     
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    margin-top: 3px;       /* Small space between the label text and the box */
    margin-bottom: 10px;   /* Safe space below the box before the movie fields begin */
}

button:disabled {
  background: lightgray;
  color: gray;
  cursor: not-allowed;
}

/* 1. The Wrapper (Invisible and non-blocking) */
#edit-pick-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background-color: transparent; 
    pointer-events: none; 
    border: none !important;
    /* We can remove display: flex entirely here since the card will center itself */
}

/* 2. The Card (Using absolute coordinates for flawless widescreen centering) */
#edit-pick-panel .dialog-content {
    background-color: #a9e7d4; 
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    
    width: calc(100% - 40px); /* Gives a nice 20px buffer on mobile screens */
    max-width: 500px;
    pointer-events: auto; 
    
    /* 🌟 THE POSITIONING ENGINE: Dead-centers the box on any screen size */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Pulls the box perfectly into the crosshairs */
    margin: 0; 
}

/* 3. The Header (Matching the dark blue "Add a Pick" style) */
#edit-pick-panel h2 {
    color: #003366; /* Match your existing heading color */
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* for add a pick, edit a pick, in case there's a URL field */
.url-input-field {
    color: #0066cc; /* Makes the typed text blue */
    font-weight: 500;
}

.real-link {
    color: #0066cc;
    text-decoration: underline;
}
.real-link:hover {
    color: #004499;
    text-decoration: none; /* Gives a nice visual pop when hovered */
}

/* This forces text fields, URL fields, and dropdown select boxes to share the exact same height rules /
.px-form-group input[type="text"],
.px-form-group input[type="url"],
.px-form-group select {
    box-sizing: border-box; /* Crucial: includes padding in the height calculation /
    display: block;
    width: 100%;
    height: 44px;          /* Adjust this number (e.g., 42px or 46px) to match your other inputs /
    padding: 10px 14px;    /* Internal comfort room for text /
    font-size: 16px;       /* Keeps text legible and uniform /
} */

/* Force url inputs and select boxes to mimic the other fields perfectly */
.px-form-group input[type="url"],
.px-form-group select,
.url-input-field {
    box-sizing: border-box;
    display: block;       /* 👈 Crucial: Forces the dropdown onto its own line like the text boxes */
    width: 100%;          /* 👈 Forces it to stretch to the full width of the container */
    font-family: inherit;
    font-size: 0.95rem;   /* Matches your .px-input */
    line-height: 1.2;     /* Matches your .px-input */
    padding: 6px 10px;    /* Matches your .px-input vertical/horizontal spacing */
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white; /* Ensures standard clean background */
    margin-top: 3px;      /* Matches the tight gap your .px-form-group labels have */
}

/* start - for a consistent panel style, like for adding picks */
/* The Modal Background (The Scrim) */
.px-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px); /* Makes it feel very modern */
}

/* The Modal Box */
.px-modal-card {
    background: white; /* Clean white card vs the green tint */
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 450px;
    border: 1px solid #e0e0e0;
}

/* Typography */
.px-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

/* Form Groups */
/* Tightened Form Group */
.px-form-group {
    margin-bottom: 10px; /* Reduced from 15px */
    display: flex;
    flex-direction: column;
}

.px-form-group label {
    font-weight: 600;
    font-size: 0.85rem; /* Slightly smaller font */
    margin-bottom: 3px;   /* Tighter gap to the input */
    color: #444;
}

/* Slimmer Input Fields */
.px-input {
    padding: 6px 10px;    /* Reduced vertical padding from 10px to 6px */
    border: 1px solid #ccc;
    border-radius: 4px;   /* Slightly sharper corners feel "tighter" */
    font-size: 0.95rem;   /* Standard readable size */
    line-height: 1.2;     /* Controls the height of the text line */
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

/* Buttons */
.px-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.px-btn-primary {
    background-color: #4CAF50; /* Your green theme color */
    color: white;
}

.px-btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    margin-left: 10px;
}

/* these are for groups and contacts */
/* Styling the multi-line select boxes to look like modern list containers */
.px-select-list {
    height: auto !important; /* Overrides default heights */
    padding: 5px !important;
    background-color: white;
    cursor: pointer;
}

.px-select-list option {
    padding: 10px;
    border-bottom: 1px solid #eee;
    border-radius: 4px;
}

.px-select-list option:checked {
    background-color: #b2dfdb !important; /* Your minty green color */
    color: #003366;
}

/* Helper for full-width buttons inside the scrollable area */
.full-width {
    width: 100%;
    margin-top: 10px;
}

.mt-15 { margin-top: 15px; }
.mt-5 { margin-top: 5px; }

.px-divider {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}
/* end of consistent panel style */
/* ----- */

/* Contact handling */
#contactForm h2 {
    color: #003366;
}

button:disabled {
    background: lightgray;
    color: gray;
    cursor: not-allowed;
}

#contactForm {
    /*padding: 20px;
    margin: 20px;*/
    /*background: #f4f4f4;*/
    border: 1px solid #ddd;
    border-radius: 8px;
}

#contact-list {
    margin-top: 20px;
}

#contacts {
    list-style: none;
    padding: 0;
}

#contacts li {
    padding: 10px;
    margin: 5px 0;
    background: #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#contacts li button {
    margin-left: 10px;
}

#contact-dropdown-container {
    margin-top: 20px;
}

#contact-dropdown {
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 5px;
}

#edit-contact-btn {
    margin-top: 10px;
    background-color: #003366;
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
}

#edit-contact-btn:disabled {
    background-color: lightgray;
    cursor: not-allowed;
}

#contactModal { 
    z-index: 20000 !important; 
}

/* Generic inline panel style (like your contactForm) for Edit and Add a Pick forms */
.panel {
  display: none;         /* start hidden */
  padding: 16px;
  background: #a9e7d4; /* #fff; */
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 820px;      /* tune to taste */
  margin: 12px auto;     /* center-ish; or remove auto to align left */
}

.panel h2 { margin-top: 0; }
.panel .actions { margin-top: 12px; }

.hidden { display: none !important; } /* you already use this; keep consistent */
.panel.hidden { display: none !important; }
.panel:not(.hidden) { display: block; } /* visible when .hidden removed */

/* g popup dialog for edit contact selection */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 20000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  .modal-content {
    background: #a9e7d4;
    border: 1px solid #ddd;
    border-radius: 8px;
    /*background-color: #fefefe;*/
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    /*border: 1px solid #888;*/
    width: 30%; /* Could be more or less (was 80%) */
    max-height: 500px; /* Set a maximum height */
    overflow-y: auto; /* Make the content scrollable */
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
  }

  .modal-message {
    margin-bottom: 1rem;
    font-size: 1rem;
  }
  
  .modal-actions {
    display: flex;
    justify-content: space-between;
  }
  
  .danger-button {
    background-color: #c62828;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .danger-button:hover {
    background-color: #b71c1c;
  }
  
  #cancel-unsubscribe {
    background-color: #ddd;
    color: #333;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
  }
  
  #cancel-unsubscribe:hover {
    background-color: #ccc;
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 1em;  /* was 28px; */
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
  ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  li {
    padding: 8px 16px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
  }
  
  li:hover {
    background-color: #f1f1f1;
  }

  /* for recommendations - namely, who shared picks with me */
  .badge {
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75em;
    margin-left: 5px;
    vertical-align: middle;
}

#shared-with-me-panel {
    /* 1. Constrain the width so it doesn't hit the edges */
    width: 90%;             /* Take up 90% of the screen width on mobile */
    max-width: 500px;       /* But never grow wider than 500px on desktop */

    /* 2. Center it perfectly in the viewport */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* The magic trick for perfect centering */

    /* 3. Aesthetics to match your other modern dialogs */
    background-color: #a9e7d4; 
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    border: 1px solid #999;
    
    /* Ensure it stays on top */
    z-index: 10002; 
}

/* Optional: Ensure the inner content doesn't feel cramped */
.ap-content {
    padding: 10px;
}

/* Target the ID or Class of your individual pick details dialog */
#details-dialog-id {
    background-color: #a9e7d4; /* 🌟 Use your standard green! */
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    
    /* Ensure this sits HIGHER than the list if they both happen to be open */
    z-index: 10005; 
}

/* If you have a white inner container, fix that too */
#details-dialog-id .modal-content {
    background-color: transparent; 
}

  /* popup that times out */
  .timeout-popup {
    /* apply 3 second hiding animation after 10 second delay */
    animation: hide 2s 1s forwards;
  
    /* fix popup at the center of screen, optional style */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: aquamarine;
  
    padding: 20px;
    /* dimming entire screen except popup */
    outline: 100vmax solid #ccc;
  }

  /* The Dark Background Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    z-index: 20000; /* Stays above the shared list */
}

/* The Minty Dialog Box */
.modal-card {
    background-color: #a9e7d4;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    border: 1px solid #999;
    position: relative;
}

.modal-card-title {
    margin-top: 0;
    color: #003366;
    border-bottom: 2px solid #8ccdb9;
    padding-bottom: 10px;
    font-size: 1.6rem;
}

.category-tag {
    color: #005a4a;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: block;
    margin-top: 10px;
}

.description-text {
    line-height: 1.6;
    color: #1a1a1a;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.modal-divider {
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: 15px 0;
}

.modal-card-footer {
    margin-top: 20px;
    text-align: right;
}
  
  @keyframes hide {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }

/* group/contact dialog
/* 1. The Global Fix for the "Wobble" */
#group-management-dialog *, 
#group-management-dialog *::before, 
#group-management-dialog *::after {
    box-sizing: border-box; /* Ensures padding doesn't add to width */
}

/* 2. Fix the Scrolling/Width of the content */
.gp-dialog-content {
    width: 100%;
    max-width: 450px; /* Limits width on desktop */
    margin: 0 auto;   /* Centers the content */
    overflow-x: hidden; /* Hard-stops the horizontal wobble */
    padding: 15px;
}

/* 3. Fix the "Close" button alignment */
#close-group-dialog {
    width: calc(100% - 30px); /* Adjusts for the padding of the parent */
    margin: 10px auto;        /* Centers it */
    display: block;           /* Allows centering with margin:auto */
}

/* 4. Fix the "Add to Group" button position */
#add-to-group-btn, 
#remove-from-group-btn {
    width: 100% !important;   /* Force it to stay within its container */
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

/* 5. Ensure the select lists don't push out to the right */
.px-select-list {
    width: 100% !important;
    max-width: 100%;
}

.gp-dialog {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    font-size: 14px;
  }

  .gp-dialog.hidden {
    display: none;
  }

  .gp-dialog-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .gp-dialog-content {
    background: #a9e7d4;
    padding: 10px;
    border-radius: 8px;
    width: 380px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden;
  }

  .gp-dialog-scrollable {
    overflow-y: auto;
    flex-grow: 1;
  }

  .gp-dialog-content h2 {
    margin: 0;
    color: #003366;
  }

  .gp-dialog-content label,
  .gp-dialog-content h3 {
    font-weight: bold;
    margin: 0.5rem 0 0.25rem;
  }

  .gp-dialog-content select,
  .gp-dialog-content textarea,
  .gp-dialog-content input[type="text"] {
    width: 100%;
    min-height: 1.5rem;
    padding: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
  }

.gp-dialog-scrollable::-webkit-scrollbar {
    width: 6px; /* Very thin */
}

.gp-dialog-scrollable::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

  .gp-dialog-header {
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 4px;
  }

  .inline-action {
    background: none;
    border: none;
    color: #0055cc;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  .inline-action.selected {
    color: white;
    background-color: #0055cc;
    text-decoration: none;
    box-shadow: 0 0 2px #003f99;
  }

  .align-text {
    position: relative;
    top: -1px;
  }

  button {
    font-size: 0.9rem;
    padding: 0.4rem;
    margin-top: 0.5rem;
  }

  button#close-group-dialog {
    background: rgb(191, 191, 240);
    margin-top: 10px;
    border-radius: 6px;
  }

  button#close-group-dialog:hover {
    background: rgba(18, 88, 137, 0.589);
  }
/* newer menu system changed from all buttons */

/* Style the navigation bar */
.menu-bar {
    display: flex;
    gap: 15px;
}

/* Dropdown Button */
.menu-button {
    background-color: #003366;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
}

/* Dropdown links */
.dropdown-content a {
    color: #003366;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Hover behavior */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Hover styling for dropdown items */
.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* for hovering over a list of picks to be deleted in 
   order to see who each pick is shared with */
/* Tooltip container /
.tooltip {
    position: absolute;
    background: rgba(0, 51, 102, 0.9);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
    max-width: 250px;
    white-space: normal;
    z-index: 1000;
    transition: opacity 0.2s ease-in-out;
}

/* Show tooltip when visible /
.tooltip.visible {
    display: block;
    opacity: 1;
    pointer-events: auto; /* Allows interaction with tooltip /
} */

/* Styling for pick list container */
/*
.pick-list {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 5px;
    background: white;
}

/* Individual pick item styling /
.pick-item {
    padding: 8px 8px 8px 5px;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    transition: background 0.2s ease-in-out;
} */
 .pick-list {
    width: 100%;
    /* Reduced from 200px to ensure 3 lists + buttons fit on a small screen */
    max-height: 120px; 
    min-height: 48px; /* Ensures at least one item is always visible */
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 5px;
    background: white;
    /* Added for smooth mobile scrolling */
    -webkit-overflow-scrolling: touch; 
}

.pick-item {
    /* Slightly increased padding for "Fat Finger" friendly tapping */
    padding: 12px 8px; 
    font-size: 16px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    transition: background 0.2s ease-in-out;
    /* Prevent text selection while tapping rapidly */
    user-select: none; 
}

/* Ensure the last item doesn't have a border */
.pick-item:last-child {
    border-bottom: none;
}

.pick-item.empty {
    cursor: default;
    background: #fdfdfd;
    color: #999;
    text-align: center;
    font-style: italic;
}

/* Hover effect for pick items */
.pick-item:hover {
    background-color: #003366;
    color: white;
    font-weight: bold;
}

/* Style for the thick line separator */
.pick-item.category-separator {
    /* Clear the thin border from the previous item's bottom or use this instead of the thin one */
    border-top: 2px solid #003366; /* Thicker, prominent line */
    margin-top: 10px; /* Add some vertical spacing above the new category */
    padding-top: 10px; /* Add padding below the thick line */
}

/* Ensure the top item of the list doesn't get unnecessary padding/border if not sorted by category */
.pick-list .pick-item:first-child {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 10px; /* Standard top padding */
}
/* The class to indicate a selected item /
.pick-item.selected {
    background-color: #3f51b5; /* A visual indication that the item is selected /
    color: white; /* Ensures text is readable /
}*/

/* Pick form container */
.pick-form {
    margin-top: 10px;
}

/* Hidden template container */
.hidden {
    display: none;
}

/* and specifically when searching for a pick */
a.pick-link {
    color: #0055cc;
    text-decoration: underline;
  }
  
  a.pick-link:visited {
    color: #0055cc; /* same color so they don’t appear "clicked" */
  }

/* Tooltip styling */
.tooltip {
    position: absolute;
    background: rgba(0, 51, 102, 0.9);
    color: white;
    padding: 8px;
    margin-left: 30px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
    max-width: 300px;
    white-space: normal;
    z-index: 1000;
    /*pointer-events: none; /* this is correct */
    transition: opacity 0.2s ease-in-out;
}

/* Show tooltip */
.tooltip.visible {
    display: block;
    opacity: 1;
}

/* Container Styling */
#search-form {
    /* 🎨 CHANGE THIS LINE to your specific light green */
    background-color: #a9e7d4; /* #b2dfdb; /* This is a common light mint; adjust as needed */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 400px;
    border: 1px solid #999; /* Optional: matching your button border style */

    margin-top: -20px;     /* Adjust this number (e.g., -40px) to pull it higher */
    position: relative;    /* Ensures the margin-top works predictably */
    top: 0;                /* Keeps it anchored */
}

.modal-title {
    color: #003366;
    margin-top: 0;
    font-size: 1.8rem;
    border-bottom: 2px solid #b2dfdb;
    padding-bottom: 10px;
}

/* Grouping labels and inputs */
.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}

.optional, .required {
    font-weight: normal;
    font-size: 0.85rem;
    color: #666;
}

/* Modernizing the inputs */
.modern-input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s ease;
}

.modern-input:focus {
    border-color: #00796b;
    outline: none;
}

/* Button Styling */
.primary-btn {
    background-color: #f5f5f5; /* Matching your existing button look */
    border: 1px solid #999;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.primary-btn:hover {
    background-color: #e0e0e0;
    border-color: #333;
}

/* Results Area */
.results-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

/* Keep pick sharing select boxes tall enough */
#pick-sharing-dialog .dialog-content select#share-target {
  min-height: 10rem;    /* fallback if size gets overridden */
  width: 100%;
  box-sizing: border-box;
}

/* Align the 'Currently Shared With' header to look like the labels above it */
#pick-sharing-dialog h3 {
    font-size: 16px;       /* Match your label size */
    font-weight: bold;     /* Keep it bold for hierarchy */
    margin-top: 8px;      /* Give it some breathing room from the 'Share' button */
    margin-bottom: 5px;    /* Tighten space to the list below */
    color: #333;           /* Standard text color */
}

/* If you want to be extra precise, target the label specifically too */
#pick-sharing-dialog label {
    font-size: 16px;
    font-weight: bold;
    display: block;        /* Ensures it stays on its own line */
    margin-bottom: 5px;
}

/* ensures visible height even before options arrive */
#pick-select {
  min-height: 2.25rem; /* ~1 row; use 3.0rem for ~2 rows */
  display: block;      /* avoids flex/grid collapsing in some layouts */
}

.target-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    box-sizing: border-box;

    flex: 0 0 auto;    /* 0 shrink, 0 grow, auto width */
    /* This forces the item to maintain its full size so the parent scrolls! */
}

.target-item input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px; /* Align with first line of text */
    width: 18px;
    height: 18px;
}

#share-target-list {
    width: 100%;                /* Fill the dialog width */
    max-height: 160px;          /* Scroll after ~4 items */
    overflow-x: auto;
    overflow-y: hidden;         /* Enable the scrollbar - we only want horizontal */
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    margin-bottom: 12px;  
    box-sizing: border-box;     /* 👈 Prevents the "too wide" blowout */

    display: flex; 
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    padding: 6px 10px;          /* Reduced padding: 6px top/bottom is much slimmer */
    min-height: 30px;           /* Set a baseline height */
    font-size: 14px;            /* Slightly smaller font to match the pick list */
    border-bottom: 1px solid #eee;
    cursor: pointer;
    -webkit-overflow-scrolling: touch;
}

#share-target-list .target-item {
    flex: 0 0 auto !important;    /* 🔥 MUST have !important to stop shrinking */
    display: inline-flex;         /* 🔥 Changed from flex to inline-flex */
    align-items: center;
    white-space: nowrap;          /* 🔥 Prevents names from breaking into 2 lines */
    padding: 5px 15px;
    background: #f1f1f1;
    border-radius: 4px;
    height: 40px;                 /* Fixed height helps scrollbars appear */
}

.target-item:hover {
    background-color: #f5f5f5;
}

.target-item input[type="checkbox"] {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.target-item.already-shared {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f9f9f9;
}
.target-item.already-shared input {
    pointer-events: none;
}

/* the badge that says how many picks are shaed with me */
.badge {
    background-color: #e74c3c;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    margin-left: 8px; /* Give it a little breathing room from the text */
    
    /* 🌟 THE FIX: Keep it from jumping away */
    display: inline-block; 
    white-space: nowrap; 
    vertical-align: middle;
}

/* this is for the specific menu link to prevent internal wrapping of the badge */
#recommendations-link {
    white-space: nowrap !important; /* Forces text and badge to stay on one line */
    display: flex !important;      /* Uses flexbox for perfect alignment */
    align-items: center;
}

/* Increase the hover area for selectable picks */
#delete-pick-list option {
    padding: 5px 5px 5px 3px; /* was 10px */
    font-size: 16px;
    /*line-height: 1.8;*/
    cursor: pointer;
    /*transition: background 0.2s ease-in-out;*/
}

/* Highlight option when hovered */
#delete-pick-list option:hover {
    background-color: #003366;
    color: #a9e7d4;
    font-weight: bold;
    /*position: relative;*/
    left: 20px;
}

/* for the unsharing a pick dialog */
/* Keep width calculations sane and hide micro-overflow */
/* Ensure the dialog is mobile-friendly */
#unshare-pick-dialog .dialog-content {
  /*box-sizing: border-box;
  overflow-x: hidden;     /* prevent the tiny horizontal scroll /
  min-width: 520px;       /* tiny nudge wider; tweak as needed */
 
    width: 95%;            /* Fill phone width */
    max-width: 400px;      /* But stay reasonable on desktop */
    max-height: 90vh;      /* Don't go off the top/bottom of screen */
    overflow-y: auto;      /* Internal scroll if dialog gets too tall */
    padding: 15px;
    box-sizing: border-box;
}

/* If any flex/grid child was forcing overflow */
#unshare-pick-dialog .pick-list { 
    /*min-width: 0; */
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    
    /* Set a minimum height for 1 item (~40px) and a max height for 3-4 items */
    min-height: 45px; 
    max-height: 120px; 
    
    overflow-y: auto;      /* Enable vertical scrolling */
    margin-bottom: 12px;
    padding: 4px;
}

/* Ensure pick items are easy to tap with a thumb */
#unshare-pick-dialog .pick-item {
    padding: 10px;         /* Larger tap target (but probably too larger $$$) */
    margin-bottom: 2px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

#unshare-pick-dialog h2 {
    font-size: 1.2rem;
    margin-top: 0;
}

/* Persistent selection look (applies to all pick lists) */
.pick-list .pick-item.selected,
.pick-list .pick-item.selected:hover {
  background-color: #e6f0ff;   /* light blue */
  color: #002244;              /* readable on light bg */
  font-weight: 600;
  outline: 1px solid #7aa3ff;       /* crisper frame */
  box-shadow: 0 0 0 2px #e6f0ff,     /* feathered halo matching bg */
              0 0 0 1px #bcd3ff inset;
  border-radius: 6px;                /* soften corners */
}

/* Placeholder rows */
.pick-list .pick-item.empty {
  color: #6b7280;
  font-style: italic;
  cursor: default;
  /*pointer-events: none; */
  background: #fafafa;
}

#pick-hover-info {
    position: absolute;      /* CRITICAL for JS positioning */
    z-index: 9999;          /* Ensure it stays above the dialog */
    background-color: #333; /* Dark background */
    color: #003366; /* Match our theme blue */color: white;           /* White text */
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    max-width: 250px;
    pointer-events: none;    /* Prevents the tooltip from flickering when the mouse touches it */
    line-height: 1.4;
    border: 1px solid #555;
}

/* Ensure the .visible class added by JS actually shows it */
#pick-hover-info.visible {
    display: block !important;
    opacity: 1;
    z-index: 10000;
}

/* Keep the .hidden class strong */
.tooltip.hidden {
    display: none;
}

/* The separator container for pick categories when the delete picks list is displayed and sorted */
.category-header {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0 5px 0;
    color: #003366; /* Match your theme blue */
    font-size: 0.75rem; /* Smaller font */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    /*pointer-events: none; /* User can't click the header */
}

/* The lines on the left and right */
.category-header::before,
.category-header::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #003366; /* Thicker line */
}

/* The spacing around the category name */
.category-header:not(:empty)::before {
    margin-right: .5em;
}

.category-header:not(:empty)::after {
    margin-left: .5em;
}

/* for book label pick selection */
/* Multi-select container */
.multi-select {
    position: relative;
    width: 100%;
}

/* Readonly display input */
.multi-select input[readonly] {
    width: 100%;
    padding: 8px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #fff;
}

/* Dropdown checkbox list */
.multi-select .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.multi-select .dropdown label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.multi-select .dropdown.hidden {
    display: none;
}

/* on signup if a username is already taken */
.error-text {
    color: red;
    font-size: 12px;
}
.success-text {
    color: green;
    font-size: 12px;
}  

/* this is for making menu items look disabled */
.is-disabled {
  /*color: gray;
  /*pointer-events: auto; /* prevent clicks /
  text-decoration: none; /* remove underline for clarity /
  opacity: 0.5; /* make it look inactive /
  cursor: default;  /* or non-allowed; */

    color: #999;           /* Makes it look greyed out */
    opacity: 0.5;          /* Makes it look faint */
    cursor: not-allowed;   /* Shows the "no" symbol when hovering */
    /* pointer-events: none; <--- REMOVED so we can click it! */
}

#toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Allows clicking through the container */
}

/*
.toast {
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}
*/
.toast {
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    
    /* 1. Start completely below the bottom of the screen */
    opacity: 0;
    transform: translateY(100px); 
    
    /* 2. Control the speed and "snap" of the slide */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    
    pointer-events: auto;
}

.toast.show {
    /* 3. Slide up into view */
    opacity: 1;
    transform: translateY(0);
}

.toast-success { background-color: #2e7d32; } /* Green */
.toast-error { background-color: #d32f2f; }   /* Red */
