/** Dashboard page **/
section.group-polls {
  padding: var(--pico-spacing);
  border: 1px solid var(--pico-color);
  border-radius: calc(var(--pico-border-radius) * 3);

}
/** Poll page **/

/* Begin: Send button */
.button-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 16px;
}

.button-wrapper::after {
    content: '✓';
    position: absolute;
    right: -34px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    font-size: 24px;
    color: #95d000;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
}

.button-wrapper.success::after {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}
.send-button {
    padding: 10px 20px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.send-button:hover {
    background: #ff3838;
}
.send-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}
/* End: Send button */


.poll-header-title {
    background: #007acc;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
}

/* Begin datepicker */
.datepicker-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.selected-date {
    font-size: 18px;
    font-weight: 600;
    padding: 12px;
    border: 1px solid
            color-mix(in oklab, CanvasText 20%, Canvas 80%);
    border-radius: 12px;
    background: Field;
    color: FieldText;
    margin-bottom: 16px;
    min-height: 50px;
    line-height: 1.5;
}
.air-datepicker {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: 1px solid
            color-mix(in oklab, CanvasText 15%, Canvas 85%);
}

/* Hide navigation elements */
.air-datepicker-nav {
    pointer-events: none;
    display: block;
}
.air-datepicker-nav--action {
    display: none !important;
}
.air-datepicker-nav--title {
    cursor: default !important;
    pointer-events: none;
    font-weight: 600;
    text-align: center;
    padding: 12px;
}

/* Custom styling */
.air-datepicker-cell.cell-voted {
    border: none;
    background: var(--adp-cell-background-color-selected);
    color: #000;
}
.air-datepicker-cell.cell-vote-range-start {
    border-radius: var(--adp-cell-border-radius) 0 0
                   var(--adp-cell-border-radius);
}
.air-datepicker-cell.cell-vote-in-range {
    border-radius: 0;
}
.air-datepicker-cell.cell-vote-range-end {
    border-radius: 0 var(--adp-cell-border-radius)
                   var(--adp-cell-border-radius) 0;
}

.air-datepicker-cell.cell-selected {
    border: 2px solid #95d000 !important;
    transform: scale(1.05);
    z-index: 10;
    position: relative;
}

.air-datepicker-cell.cell-selected:not(.cell-selected-range-end,.cell-selected-in-range)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 12px solid #95d000;
    border-bottom: 12px solid transparent;
    z-index: 1;
}

.air-datepicker-cell.cell-selected.cell-selected-range-end::before {
    content: "";
    position: absolute;
    top: calc(100% - 12px);
    left: calc(100% - 12px);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-bottom: 12px solid #95d000;
    z-index: 1;
}

.air-datepicker-cell.cell-selected-range-start {
    border-right: none !important;
}
.air-datepicker-cell.cell-selected-in-range {
    border-left: none !important;
    border-right: none !important;
}
.air-datepicker-cell.cell-selected-range-end {
    border-left: none !important;
}
