.content {
	width: 90%;
	margin: 0 auto;
}
.content h2 {
	margin: 0;
	padding: 25px 0;
	font-size: 22px;
	border-bottom: 1px solid #e0e0e3;
	color: #4a536e;
}
.content > p, .content > div {
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
	margin: 25px 0;
	padding: 25px;
	background-color: #fff;
}
.content > p table td, .content > div table td {
	padding: 5px;
}
.content > p table td:first-child, .content > div table td:first-child {
	font-weight: bold;
	color: #4a536e;
	padding-right: 15px;
}
.content > div p {
	padding: 5px;
	margin: 0 0 10px 0;
}

/* taken from bootstrap  - shadow around content divs*/ 
.ppcontent {
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    margin: 25px 0;
    padding: 25px;
    background-color: #fff;
    width: 90%;
}


/* background and text color for navbar*/
.nav-bg {
  background-color: #9d00ff!important;
  color: #ffffff;
}

.pp-nav-link {
  cursor: pointer;    /* Ensures the hand cursor appears */
  user-select: none;  /* Prevents text selection */
}

/* Set the border color and bar for the hamburger menu */
.custom-toggler.navbar-toggler:active {
  border-color: white;
}

.custom-toggler.navbar-toggler-icon:active {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24' /%3E%3C/svg%3E");
}

.dropdown-menu {
  background-color: #9d00ff!important; /* Change to your preferred color */
  border: none; /* Optional: Remove border */
}

.dropdown-item {
  color: white; /* Optional: Adjust text color for better contrast */
}

.dropdown-item:hover {
  background-color: #bb4dff; /* Optional: Add hover effect */
}

/* purple bootstrap button 
@media screen and (max-width: 768px) {
  .btn-purple {
    background-color: #9d00ff !important;
    border-color: #9d00ff !important;
    color: white !important;
  }

  .btn-purple:hover {
    background-color: #7a00cc !important;
  }
}
*/

.btn-purple {
  background-color: #9d00ff !important;
  border-color: #9d00ff !important;
  color: white !important;
  font-weight: 500;
  transition: background-color 0.2s ease-in-out;
}

.btn-purple:hover,
.btn-purple:focus,
.btn-purple:active {
  background-color: #7a00cc !important;
  border-color: #6c00b5 !important;
  color: white !important;
}

.btn-outline-purple {
  background-color: transparent !important;
  border: 2px solid #9d00ff !important;
  color: #9d00ff !important;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn-outline-purple:hover,
.btn-outline-purple:focus,
.btn-outline-purple:active {
  background-color: #9d00ff !important;
  border-color: #6c00b5 !important;
  color: white !important;
}


.dropdown-narrow {
  width: 250px !important;
}

h6 {
  margin-bottom: 0px; /* Adjust this value as needed */

}

.group-event-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 2px 0;
    font: inherit;
    color: #0d6efd;
    text-decoration: none;
    display: block;
    text-align: left;
    cursor: pointer;
    white-space: normal;
    line-height: 1.4;

    /* Uniform alignment */
    padding-left: 0;        /* first line aligns flush with heading */
    text-indent: 0;         /* reset any weird indent */

    /* Fix iOS Safari blue highlight */
    -webkit-tap-highlight-color: transparent;
}

/* Hanging indent ONLY for wrapped lines */
.group-event-btn span {
    display: inline-block;
    padding-left: 1.2em;    /* indent wrapped lines */
    text-indent: -1.2em;    /* keep first line flush */
}

/* Hover styles */
.group-event-btn:hover,
.group-event-btn:focus {
    text-decoration: underline;
    color: #6610f2; /* purple accent */
}



.noticeable-entry,
.notpicked-entry {
    margin: 4px 0;
    display: block;
}

/* hanging indent fix for Safari + cross-browser */
.entry-text {
    display: block;
    line-height: 1.5em;
    padding-left: 1.5em;
    text-indent: -1.5em;

    /*  Safari WebKit-specific fixes */
    -webkit-padding-start: 1.5em;
    -webkit-text-indent: -1.5em;

    /* ensure text wraps cleanly on small screens */
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* badges wrapper - ensures badges align properly with text */
.badges {
    display: inline-block;
    margin-left: 0.3em;
    text-indent: 0;
    vertical-align: middle;  /*  keeps badges level with text */
}

/* individual badge styling */
.badge {
    margin-right: 0.25em;
    white-space: nowrap;     /* prevents wrapping inside badges */
    vertical-align: middle;  /* fixes Safari’s baseline misalignment */
}


/* === Notifications === */
.notification-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: #f9f9f9;
    transition: background 0.2s ease-in-out, border-left 0.2s ease-in-out;
}

.notification-card.unread {
    background: #e8f3ff; /* subtle blue highlight for unread */
    border-left: 4px solid #007bff;
}

.notification-card.read {
    background: #f9f9f9;
}

.notification-card p {
    margin-bottom: 6px;
    line-height: 1.4;
}

.notification-actions {
    margin-top: 8px;
}

.notif-badge {
    position: absolute;
    top: -2.5px;
    right: -4px;
    min-width: 11.5px;
    height: 11.5px;
    background-color: #dc3545;
    color: #fff;
    border-radius: 50%;
    font-size: 0.52rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    box-shadow: 0 0 0 1px #fff;
    transition: all 0.2s ease-in-out;
}

/*  Dynamic resize for counts ≥ 10 */
.notif-badge:has(:first-child:contains("1")),
.notif-badge:has(:first-child:contains("2")),
.notif-badge:has(:first-child:contains("3")),
.notif-badge:has(:first-child:contains("4")),
.notif-badge:has(:first-child:contains("5")),
.notif-badge:has(:first-child:contains("6")),
.notif-badge:has(:first-child:contains("7")),
.notif-badge:has(:first-child:contains("8")),
.notif-badge:has(:first-child:contains("9")) {
    /* do nothing for 1–9 */
}

/* Safari-friendly fallback (for 10+) */
.notif-badge.double-digit {
    min-width: 16px;
    height: 16px;
    font-size: 0.6rem;
}



/* Optional: make the notification area look cleaner on mobile */
@media (max-width: 600px) {
    .notification-card {
        padding: 8px 10px;
    }
    .notification-actions button {
        font-size: 0.8em;
        padding: 3px 8px;
    }
}


.bootstrap-select .dropdown-toggle {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    color: #333 !important;
}

.bootstrap-select .bs-searchbox input {
    border: 1px solid #ccc;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .bootstrap-select {
        width: 100% !important;
    }
}

.pagination .page-link {
    color: #6c2bd9;
}
.pagination .page-item.active .page-link {
    background-color: #6c2bd9;
    border-color: #6c2bd9;
    color: #fff;
}

#history-container {
    transition: opacity 0.2s ease-in-out;
}



/************************************/
/*        notification styles       */


.notifications-container {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(160, 32, 240, 0.1);
    padding: 20px 25px;
}

/* Title */
.notifications-container h4 {
    color: #6a00c2;
    font-weight: 600;
    border-bottom: 2px solid #a020f0;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* Mark All as Read */
.btn-mark-read {
    background-color: #a020f0;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}
.btn-mark-read:hover {
    background-color: #7a00c2;
    color: #fff;
}

/* Notification Card */
.notification-item {
    background: linear-gradient(90deg, #f6f0ff 0%, #ffffff 100%);
    border-left: 4px solid #a020f0;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(160, 32, 240, 0.08);
}

/* Text */
.notification-item p {
    margin: 0 0 6px 0;
    color: #222;
}
.notification-item small {
    color: #888;
    font-size: 0.85em;
}

/* Accept / Reject Buttons */
.notification-actions .btn-accept {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 4px 12px;
    margin-right: 5px;
    transition: background 0.2s;
}
.notification-actions .btn-accept:hover {
    background-color: #43a047;
}

.notification-actions .btn-reject {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 4px 12px;
    transition: background 0.2s;
}
.notification-actions .btn-reject:hover {
    background-color: #d32f2f;
}


/************************************/
/*  Donut pattern Live Editor Styles */
/************************************/

.editor-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.editor-container {
    display: flex;
    flex-direction: column;   /* stack vertically */
    align-items: center;      /* center items horizontally */
    justify-content: flex-start;
    gap: 30px;
    width: 100%;
}


.avatar-section {
    display: flex;
    justify-content: center;
}

.avatar-box {
    width: 128px;
    height: 128px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
}

.controls label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

/* Buttons layout under editor */
.button-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.cancel-btn {
    background-color: #ccc !important;
    color: #000 !important;
}

/* Alert messages */
.alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    text-align: center;
}
.alert-success {
    background-color: #e0ffe0;
    color: #155724;
    border: 1px solid #a3e6a3;
}
.alert-danger {
    background-color: #ffe0e0;
    color: #721c24;
    border: 1px solid #f5a3a3;
}

/* Mobile-first responsiveness */
@media (max-width: 768px) {
    .editor-container {
        flex-direction: column;
        align-items: center;
    }
    .controls {
        width: 100%;
        max-width: 300px;
    }
}

/* 🎨 Purple slider styling */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e5e5e5;
    outline: none;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #9d00ff; /* your purple brand color */
    cursor: pointer;
    transition: background 0.3s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
    background: #bb4dff;
}
input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #9d00ff;
    cursor: pointer;
    border: none;
}

/* === Event Cards (Group & Public) === */
.event-card {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #dee0e4;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
    -webkit-tap-highlight-color: transparent;
}

.event-card:hover,
.event-card:focus {
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    border-color: #9d00ff;
    outline: none;
}

.event-card-title {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 15px;
    margin-bottom: 4px;
    width: 100%;
}

.event-card-meta {
    display: block;
    font-size: 13px;
    color: #888;
    width: 100%;
}

/* === Pick Inputs === */
.ui-widget input[type="text"],
.ui-widget input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]) {
    display: block;
    width: 100%;
    max-width: 400px;
    height: 48px;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1px solid #dee0e4;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    -webkit-appearance: none;
    appearance: none;
}

.ui-widget input:focus {
    outline: none;
    border-color: #9d00ff;
    box-shadow: 0 0 0 3px rgba(157, 0, 255, 0.12);
}

.ui-widget input::placeholder {
    color: #aaa;
    font-style: italic;
}

/* === Pick Status Icons === */
.icon-picked-all {
    color: #28a745;
}

.icon-picked-some {
    color: #fd7e14;
}



/* === Dark Theme === */
body.dark-theme {
    background-color: #1c1c1c;
    color: #e0e0e0;
}

body.dark-theme .ppcontent {
    background-color: #2a2a2a;
    color: #e0e0e0;
    box-shadow: 0 0 5px 0 rgba(0,0,0,0.4);
}

body.dark-theme .event-card {
    background-color: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-theme .event-card-title {
    color: #e0e0e0;
}

body.dark-theme .event-card-meta {
    color: #aaa;
}

body.dark-theme .event-card:hover,
body.dark-theme .event-card:focus {
    border-color: #9d00ff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

body.dark-theme .nav-bg {
    background-color: #6a00b5 !important;
}

body.dark-theme .alert-warning {
    background-color: #3a2e00;
    color: #ffd966;
    border-color: #665200;
}

body.dark-theme .alert-success {
    background-color: #0d3320;
    color: #6fcf97;
    border-color: #1a5c38;
}

body.dark-theme .alert-danger {
    background-color: #3a0d0d;
    color: #eb5757;
    border-color: #5c1a1a;
}

body.dark-theme .alert-info {
    background-color: #2f2f2f;
    color: #e0e0e0;
    border-color: #555;
}

body.dark-theme .text-muted {
    color: #888 !important;
}

body.dark-theme table {
    color: #e0e0e0;
}

body.dark-theme .table-bordered {
    border-color: #444;
}

body.dark-theme .table-bordered td,
body.dark-theme .table-bordered th {
    border-color: #444;
}

body.dark-theme input[type="text"],
body.dark-theme input[type="email"],
body.dark-theme input[type="password"],
body.dark-theme select,
body.dark-theme textarea {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-theme input::placeholder {
    color: #888;
}

body.dark-theme hr {
    border-color: #444;
}

body.dark-theme .notification-card {
    background-color: #2a2a2a;
    border-color: #444;
}

body.dark-theme .notification-card.unread {
    background-color: #2f2f2f;
    border-left-color: #9d00ff;
}


body.dark-theme .notification-item {
    background: #2a2a2a;
    border-left-color: #9d00ff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

body.dark-theme .notification-item p {
    color: #e0e0e0;
}

body.dark-theme .notification-item small {
    color: #aaa;
}

body.dark-theme .notifications-container {
    background: #2a2a2a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

body.dark-theme .notifications-container h4 {
    color: #e0e0e0;
    border-bottom-color: #9d00ff;
}

body.dark-theme .avatar-box {
    border-color: #555;
    background-color: #2a2a2a;
}

body.dark-theme input[type="range"] {
    background: transparent;
}

body.dark-theme input[type="range"]::-webkit-slider-runnable-track {
    background: #666;
    height: 6px;
    border-radius: 5px;
}

body.dark-theme input[type="range"]::-moz-range-track {
    background: #666;
    height: 6px;
    border-radius: 5px;
}

body.dark-theme input[type="range"]::-webkit-slider-thumb {
    background: #9d00ff;
    margin-top: -6px;
}

body.dark-theme input[type="range"]::-moz-range-thumb {
    background: #9d00ff;
    border: none;
}

body.dark-theme .pagination .page-link {
    background-color: #2a2a2a;
    border-color: #555;
    color: #9d00ff;
}

body.dark-theme .pagination .page-item.active .page-link {
    background-color: #9d00ff;
    border-color: #9d00ff;
    color: #fff;
}

body.dark-theme .pagination .page-item.disabled .page-link {
    background-color: #2a2a2a;
    border-color: #555;
    color: #666;
}

body.dark-theme .pagination .page-link:hover {
    background-color: #3a3a3a;
    border-color: #9d00ff;
    color: #9d00ff;
}

body.dark-theme .table {
    color: #e0e0e0 !important;
    background-color: #2a2a2a !important;
}

body.dark-theme .table td,
body.dark-theme .table th {
    background-color: #2a2a2a !important;
    border-color: #555 !important;
    color: #e0e0e0 !important;
}

body.dark-theme .table-striped tbody tr:nth-of-type(odd) td {
    background-color: #333 !important;
}

body.dark-theme .table-striped tbody tr:nth-of-type(even) td {
    background-color: #2a2a2a !important;
}

body.dark-theme .table thead th {
    background-color: #333 !important;
    border-color: #555 !important;
    color: #e0e0e0 !important;
}

body.dark-theme .table tbody tr {
    background-color: #2a2a2a !important;
}

body.dark-theme .table tbody tr:hover td {
    background-color: #333 !important;
}


body.dark-theme .list-group-item {
    background-color: #2a2a2a !important;
    border-color: #555 !important;
    color: #e0e0e0 !important;
}

body.dark-theme .list-group-item:hover {
    background-color: #333 !important;
}



/* === Group management icons === */
.group-icon {
    color: #9d00ff;
    margin-right: 6px;
}

.chevron-icon {
    color: #888;
    font-size: 12px;
}

body.dark-theme .chevron-icon {
    color: #aaa;
}



/**********************************/



/* === Avatar sizes === */
.avatar-40 {
    width: 40px;
    height: 40px;
    margin-right: 8px;
    flex-shrink: 0;
}

.avatar-32 {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* === Pick member header === */
.pick-member-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.pick-member-header h6 {
    margin: 0;
}

/* === Leaderboard row === */
.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

/* === Show link button === */
.show-link-btn {
    background: none;
    border: none;
    color: #0d6efd;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    padding: 2px 0;
    font-size: inherit;
    font-family: inherit;
}

.show-link-btn:hover {
    text-decoration: underline;
    color: #9d00ff;
}

/* === Welcome text === */
.welcome-text {
    text-align: center;
}

/* === Scrollable list container === */
.scrollable-list {
    max-height: 200px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 10px;
}


/* === Show Row === */
.show-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 6px;
    border: 1px solid #dee0e4;
    border-radius: 6px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    color: #333;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    -webkit-tap-highlight-color: transparent;
}

.show-row:hover,
.show-row:focus {
    border-color: #9d00ff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    outline: none;
}

.show-row-left {
    display: flex;
    flex-direction: column;
}

.show-row-date {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.show-row-venue {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.show-row-icon {
    font-size: 16px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Dark theme */
body.dark-theme .show-row {
    background: #2a2a2a;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-theme .show-row:hover,
body.dark-theme .show-row:focus {
    border-color: #9d00ff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

body.dark-theme .show-row-date {
    color: #e0e0e0;
}

body.dark-theme .show-row-venue {
    color: #aaa;
}


