/* Dashboard Content */

.dashboard-card {
    width: 50%;
    background: linear-gradient(135deg, #6143E4 0%, #6C5CE7 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
}

.dashboard-card h1 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-card h1 i {
    font-size: 36px;
}

/* Decorative Elements */
.card-circle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.circle-1 {
    width: 150px;
    height: 150px;
    top: -50px;
    right: -50px;
}

.circle-2 {
    width: 100px;
    height: 100px;
    bottom: -30px;
    left: 30%;
}

/* Special styling for curry pot icon */
.curry-pot {
    font-size: 38px;
    margin-right: 15px;
    color: #FFC107;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.calendar-wrapper {
    padding: 35px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.calendar-header-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-title {
    color: #3A3A49;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 0px;
}

.calendar-header-section span {
    color: #3A3A49;
    font-size: 14px;
}

.calendar-container {
    background-color: #ffffff;
    width: 100%;
    padding: 1.5rem 0;
    border-radius: 10px;
    border: 1px solid #e9d4ff;
    margin: 0;
    overflow: hidden;
}

.calendar-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e9d4ff;
    margin-bottom: 20px;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.week-view .calendar-body {
    overflow-x: auto;
}

.week-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.week-table th {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fff;
    border-left: 1px solid #e9d4ff;
    padding: 8px;
    width: 14.28%;
    vertical-align: top;
    white-space: nowrap;
    color: #3A3A49;
    font-weight: 500;
    font-size: 1em;
      white-space: normal;      /* let text break if needed */
  overflow-wrap: anywhere;  /* allow long words to wrap */
  word-break: break-word;
}

.week-table td {
    border: 1px solid #e9d4ff;
    padding: 8px;
    /* width: 50px; */
    vertical-align: top;
    white-space: nowrap;
}


.time-column {
    width: 80px;
    font-size: 0.8em;
    color: #666;
    border-left: none !important;
}

.day-column {
    position: relative;
    height: 80px;
    /* Increased height of day column to accommodate event details */
    vertical-align: top;
    /* Align content to the top of the cell */
}

.week-event {
    background-color: #6143E4;
    color: white;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 0.8em;
    position: relative;
    /* Changed to relative positioning */
    left: 5px;
    right: 5px;
    top: 0;
    max-width: 170px;
    /* min-height: 50px; Added a minimum height for the event container */
    display: flex;
    /* Use flexbox for layout */
    flex-direction: column;
    justify-content: flex-start;
}

.week-event .event-content {
    line-height: 1.2;
    padding: 5px;
}

.week-event .event-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3px;
    /* width: 100%; */
}

.event-header .event-title {
    font-size: 14px;
    margin: 0 0 3px 0;
    text-align: left;
    color: #fff;
    box-sizing: border-box;
    width: 100%;
    font-weight: 500;
    display: flex;
    white-space: normal; /* let text break if needed */
    overflow-wrap: anywhere; /* allow long words to wrap */
    word-break: break-word;
}

.week-event p.event-meta {
    font-size: 0.7em;
    color: #ccc;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.week-event .event-description {
    font-size: 0.7em;
    color: #ddd;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin-bottom: 0;
}

.week-view .calendar-header .view-dropdown select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}


.today-btn {
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    background: #6143E4;
    color: #fff;
    font-size: 14px;
    width: 10%;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
    /* Remove underline */
}

.today-btn:hover {
    background-color: #6143E4;
    /* border-color: #fff; */
    color: #fff;
    transform: translateY(-1px);
}

.date-navigation {
    display: flex;
    align-items: center;
    gap: 5px;
}

.date-navigation h2 {
    margin: 0;
    font-size: 16px;
    color: #3A3A49;
    font-weight: 600;
    min-width: 180px;
    text-align: center;
}

.date-navigation a {
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: #3A3A49;
    transition: all 0.2s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-navigation a:hover {
    background-color: #f5f3ff;
    transform: translateY(-1px);
}





.today-head {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
}

.date-navigation a:hover {

    background-color: #f9f7ff;
    color: #6143E4;
    text-decoration: none;
    border-radius: 50%;
}

.date-navigation {
    display: flex;
    align-items: center;
}

.nav-prev span,
.nav-next span {
    font-size: 1.5em;
    line-height: 1;
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-btn {
    background-color: #F5F3FF;
    outline: none;
    border: none;
    color: #FF1313;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.view-controls input {
    cursor: pointer;
    width: 80%;
    border-radius: 5px;
    color: #3A3A49;
}

.view-controls strong {
    font-size: 1em;
    color: #3A3A49;
    font-weight: 500;
    margin-right: 10px;
}

.view-dropdown {
    margin-right: 10px;
}

.view-dropdown select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-dropdown select:hover {
    border-color: #c0b4ff;
}

.details-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    fill: currentColor;
}

#calendarView {
    padding: 10px;
    border: 1px solid #d6d6d6;
    border-radius: 5px;
    background-color: #fff;
    color: #3A3A49;
}

.calendar-toggle-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.calendar-body {
    display: block;
    overflow-x: auto;
}

.time-slots {
    border-left: 1px solid #eee;
}

.time-slots-wrapper {
    position: relative;
}

.time-slot {
    border-bottom: 1px solid #DDDDDD;
    position: relative;
    height: 60px;
    display: flex;
}

.time-label {
    padding: 8px;
    text-align: right;
    font-size: 0.8em;
    color: #3A3A49;
    border-right: 1px solid #DDDDDD;
    width: 80px;
    flex-shrink: 0;
    margin-right: 10px;
    line-height: 44px;
}

.event-container {
    position: relative;
    height: 44px;
    width: 100%;
}

.events-row {
    position: relative;
    width: 100%;
    height: 100%;
}

.minute-events {
    position: absolute;
    display: flex;
    align-items: center;
    width: 95%;
    height: 44px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.event {
    background-color: #6143E4;
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 100%;
    min-width: 20px;
    /* Ensure events have a minimum width */
}

.event-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: bold;
    width: 5px;
    padding: 0;
    height: 100%;
}

.event-content {
    line-height: 1.2;
}

.event-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    justify-content: space-between;
    flex-wrap: wrap;
    min-width: 0;
}

.event-type-badge {
    /* background-color: rgba(0, 0, 0, 0.1); */
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.7em;
    margin-right: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.event-time {
    font-size: 14px;
    color: #fff !important;
    font-weight: 500 !important;
    width: 100%;
    text-align: left !important;
    white-space: normal;      /* let text break if needed */
    overflow-wrap: anywhere;  /* allow long words to wrap */
    word-break: break-word;
}

.event h3 {
    font-size: 1em;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-meta {
    font-size: 0.75em;
    color: #ccc;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-description {
    font-size: 0.8em;
    color: #ddd;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0;
}

.deadline-passed {
    background-color: rgba(97, 67, 228, 0.178) !important;
}

.deadline-passed span {
    color: #6143E4 !important;
}

.hidden {
    display: none !important;
}

.no-auctions{
    white-space: normal;      /* let text break if needed */
    overflow-wrap: anywhere;  /* allow long words to wrap */
    word-break: break-word;
}

/* Responsive styles for many events */
@media (max-width: 600px) {
    .minute-events {
        flex-wrap: wrap;
        height: auto;
        min-height: 44px;
    }

    .event {
        min-width: 50px;
        margin-bottom: 2px;
    }
}

/* Popup styles */
.shortlist-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: rgba(0, 0, 0, 0.5); */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.shortlist-popup-content {
    background-color: #F5F3FF;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.shortlist-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    padding-bottom: 0;
    /* border-bottom: 1px solid #eee; */
}

.shortlist-popup-header h5 {
    margin: 0;
    font-weight: 500;
}

.shortlist-card-body {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    color: #666;
}

.shortlist-popup-body {
    padding: 20px;
}

.shortlist-details-container .card {
    border: none;
    box-shadow: none;
}

.shortlist-details-container p {
    margin-bottom: 8px;
}

.shortlist-details-container p {
    font-size: 0.9rem;
    color: #3A3A49;
    font-weight: 500;
}

.event {
    cursor: pointer;
    transition: transform 0.1s ease;
}

.event:hover {
    transform: scale(1.02);
}

.section {
    margin: 40px 0;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* Alternative Dropdown Style */
.dropdown-selector {
    position: relative;
    display: inline-block;
    margin: 0;
}

.dropdown-btn {
    /* background: linear-gradient(135deg, #5e4fa3, #6143E4); */
    background-color: #ffffff;
    color: #3A3A49;
    padding: 10px 15px;
    border: 1px solid #d6d6d6;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    min-width: 100px;
    justify-content: space-between;
}

.dropdown-btn:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 12px 30px rgba(255, 107, 157, 0.4); */
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.dropdown-selector.open .dropdown-arrow {
    transform: rotate(180deg);
}

.calendar-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #d6d6d6;
    backdrop-filter: blur(20px);
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(148, 148, 148, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    margin-top: 8px;
}

.dropdown-selector.open .calendar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.calendar-dropdown-item {
    padding: 7px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #3A3A49;
    font-weight: 500;
    border-radius: 5px;
    margin: 4px;
}

.calendar-dropdown-item:hover {
    background-color: #F2F5FF;
}

.calendar-dropdown-item.active {
    background-color: #F2F5FF;
}

/* Existing styles for calendar events */
.more-events-link {
    font-size: 12px;
    color: #666;
    cursor: pointer;
    padding: 2px 4px;
    text-align: center;
    border-radius: 3px;
    margin-top: 2px;
    transition: background-color 0.3s;
}

.more-events-link:hover {
    background-color: #f0f0f0;
    color: #333;
}


/* Modal styles */
.modal {
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #666;
}

.modal-body {
    padding: 16px 24px;
    max-height: 400px;
    overflow-y: auto;
}

.modal-event {
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.modal-event-content {
    padding: 12px 16px;
    cursor: pointer;
    background-color: #6143E4;
    transition: background-color 0.3s ease-in;
}

.modal-event-content:hover {
    background-color: #3f1bdb;
}

.modal-event-title {
    margin: 0 0 4px 0;
    font-size: 0.85rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 500;
    color: #FFFFFF;
}

.modal-event-time {
    font-size: 0.82rem;
    color: #FFFFFF;
    font-weight: 500;
}

.modal-event-description {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.modal-footer button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.modal-footer button:hover {
    background-color: #0056b3;
}

/* Events popup styles */
.events-popup {
    position: fixed;
    z-index: 1000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e4e7;
    width: 280px;
    max-height: 320px;
    overflow: hidden;
    animation: popupSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.event-popup-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e4e7;
}

.popup-day-name {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-right: 12px;
}

.popup-date {
    font-size: 28px;
    font-weight: 700;
    color: #495057;
    line-height: 1;
}

.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    border-radius: 6px;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background-color: #e9ecef;
    color: #495057;
    transform: scale(1.1);
}

.popup-events {
    padding: 12px 16px 16px;
    max-height: 260px;
    overflow-y: auto;
}

.popup-event {
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: white;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.popup-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.popup-event:hover::before {
    left: 100%;
}

.popup-event:hover {
    transform: translateX(4px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {

    .calendar-wrapper{
        padding: 15px;
    }

    .event-header .event-title,
    .event-header .event-time{
        font-size: 12px;
    }

    .calendar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }

    .today-btn{
        width: 25%;
    }

    .calendar-controls {
        width: 100%;
        justify-content: space-between;
    }

    .date-navigation {
        width: 100%;
        justify-content: center;
    }

    .view-controls {
        width: 100%;
        justify-content: flex-end;
    }
}