/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fafafa;
    color: #000;
    line-height: 1.6;
}

/* Banner Styles */
.banner-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 1em 0;
    margin-bottom: 0;
}

.banner-image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.banner-container a {
    display: block;
    line-height: 0;
}

.banner-container a:hover {
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
h1 {
    font-family: Arial, sans-serif;
    font-size: 2.5em;
    margin-bottom: 0.5em;
    color: #000;
}

h2 {
    font-family: Arial, sans-serif;
    font-size: 2em;
    margin-bottom: 1em;
    color: #000;
}

h3 {
    font-family: Arial, sans-serif;
    font-size: 1.5em;
    margin-bottom: 0.5em;
    color: #000;
}

.subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 2em;
}

/* Header */
header {
    text-align: center;
    padding: 2em 0;
    border-bottom: 2px solid #000;
    margin-bottom: 3em;
}

header h1 {
    margin-bottom: 0;
}

/* Charities Overview */
.charities-overview {
    margin-bottom: 4em;
}

.office-milestones-overview {
    margin-bottom: 4em;
}

.auction-items-overview {
    margin-bottom: 4em;
}

.charities-rows {
    margin-top: 2em;
}

.charity-row {
    display: flex;
    align-items: center;
    padding: 1.5em;
    margin-bottom: 1em;
    background: #fff;
    border: 1px solid #ddd;
    gap: 2em;
}

.charity-row-logo {
    flex-shrink: 0;
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.charity-logo-small {
    object-fit: fill;
    flex-shrink: 0;
}

.logo-placeholder {
    width: 180px;
    height: 180px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.1em;
    background: #f5f5f5;
}

.charity-row-description {
    flex: 1;
    color: #333;
}

.charity-row-description p {
    margin: 0;
}

.charity-row-button {
    flex-shrink: 0;
}

.charity-logo {
    max-width: 200px;
    max-height: 200px;
    margin-bottom: 1em;
    object-fit: contain;
}

.charity-logo-large {
    margin: 0 auto 1em;
    display: block;
    object-fit: fill;
    flex-shrink: 0;
}

.charity-card h3 {
    margin-bottom: 1em;
    color: #091c2d;
}

.charity-card p {
    margin-bottom: 1.5em;
    color: #333;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.8em 2em;
    background-color: #3353ff;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 1em;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #2640cc;
}

.btn-view {
    display: inline-block;
    padding: 0.6em 2em;
    background-color: #3353ff;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-view:hover {
    background-color: #2640cc;
}

.btn-donate {
    display: block;
    margin: 2em auto;
    padding: 1em 3em;
    background-color: #3353ff;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-donate:hover {
    background-color: #2640cc;
}

.btn-submit {
    padding: 0.8em 2em;
    background-color: #3353ff;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 1em;
    width: 100%;
    margin-top: 1em;
}

.btn-submit:hover {
    background-color: #2640cc;
}

/* Charts Section */
.charts-section {
    margin-top: 4em;
    padding-top: 3em;
    border-top: 2px solid #000;
}

.chart-legends-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.milestone-chart-legend {
    display: flex;
    align-items: center;
    gap: 1.2em;
}

.milestone-chart-legend-line {
    height: 0;
    border-bottom: 2px dashed #091c2d;
    flex-shrink: 0;
}

.donation-milestone-square {
    flex-shrink: 0;
}

.contributions-outstanding-square {
    flex-shrink: 0;
}

.milestone-chart-legend-text {
    font-size: 1.2em;
    color: #091c2d;
    font-family: Arial, sans-serif;
    font-weight: normal;
}

.outstanding-amount-value {
    font-weight: bold;
    color: #091c2d;
}

.charity-detail-legends .milestone-chart-legend-text {
    font-size: 0.95em;
}

.charity-detail-legends {
    margin-top: 1em;
    margin-bottom: 1em;
}

/* Mobile: Make legends smaller on all pages */
@media (max-width: 768px) {
    .milestone-chart-legend-text {
        font-size: 0.9em !important;
    }
    
    .charity-detail-legends .milestone-chart-legend-text {
        font-size: 0.8em !important;
    }
    
    .milestone-chart-legend {
        gap: 0.8em;
    }
    
    .chart-legends-container {
        gap: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
    }
}

.milestones-chart-container {
    display: flex;
    gap: 2em;
    margin-top: 2em;
    margin-bottom: 3em;
    align-items: flex-start;
}

.y-axis-labels {
    position: relative;
    width: 60px;
    height: 400px;
    flex-shrink: 0;
}

.y-axis-label {
    position: absolute;
    right: 0;
    font-size: 0.85em;
    color: #333;
    font-family: Arial, sans-serif;
    transform: translateY(50%);
    white-space: nowrap;
}

.bars-container {
    flex: 1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(80px, 150px);
    gap: 1.5em;
    align-items: end;
    padding-bottom: 6em;
}

.bar-item {
    display: grid;
    grid-template-rows: 400px auto auto;
    align-items: end;
    justify-items: center;
    gap: 0;
}

.bar-chart-track {
    position: relative;
    width: 50px;
    background-color: transparent;
    border: 1px solid #ccc;
    min-height: 30px;
    max-height: 400px;
    align-self: end;
    justify-self: center;
}

.bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #3353ff;
    transition: height 0.5s ease, background-color 0.3s ease;
    z-index: 1;
}

.overall-bar {
    background-color: #000;
}

.bar-remaining {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    z-index: 0;
}

.milestone-marker-vertical {
    position: absolute;
    left: 0;
    width: 100%;
    height: 0;
    border-bottom: 2px dotted #091c2d;
    z-index: 2;
    transform: translateY(50%);
    cursor: pointer;
}

.milestone-marker-vertical.milestone-tooltip-trigger:hover,
.milestone-marker-vertical.milestone-tooltip-trigger.active {
    z-index: 11;
}

.milestone-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #091c2d;
    color: #fff;
    padding: 0.6em 0.8em;
    border-radius: 4px;
    font-size: 0.85em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    max-width: 250px;
    white-space: normal;
    text-align: left;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.milestone-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #091c2d;
}

.milestone-tooltip strong {
    display: block;
    margin-bottom: 0.3em;
    font-size: 1.05em;
}

.milestone-tooltip-trigger:hover .milestone-tooltip,
.milestone-tooltip-trigger.active .milestone-tooltip {
    opacity: 1;
    pointer-events: auto;
}

.bar-label {
    margin-top: 0.5em;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    flex-shrink: 0;
}

.bar-value {
    margin-top: 0.5em;
    margin-bottom: 0;
    font-size: 0.9em;
    color: #333;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: Georgia, serif;
}

.bar-label-name {
    font-size: 0.9em;
    font-weight: bold;
    color: #091c2d;
    text-align: center;
    word-wrap: break-word;
    max-width: 120px;
}

.bar-label-logo {
    object-fit: fill;
    flex-shrink: 0;
}

.bar-label-logo-spacer {
    height: 80px;
    visibility: hidden;
}

/* Milestone Legend */
.milestone-legend {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid #ddd;
}

.milestone-legend h3 {
    font-size: 1.2em;
    margin-bottom: 1em;
    color: #091c2d;
    font-weight: bold;
}

.milestone-legend-items {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.milestone-legend-item {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.milestone-legend-number {
    font-family: Georgia, serif;
    font-weight: bold;
    color: #091c2d;
    font-size: 1.1em;
    min-width: 25px;
    text-align: center;
}

.milestone-legend-line {
    width: 30px;
    height: 0;
    border-bottom: 2px dotted #091c2d;
    flex-shrink: 0;
}

.milestone-legend-text {
    color: #333;
    font-size: 0.95em;
    flex: 1;
}

/* Charity Milestone Legend */
.charity-milestone-legend {
    margin-top: 0.8em;
    padding-top: 0.8em;
    border-top: 1px solid #e0e0e0;
    width: 100%;
}

.charity-milestone-legend-item {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin-bottom: 0.5em;
    font-size: 0.8em;
}

.charity-milestone-legend-item:last-child {
    margin-bottom: 0;
}

.charity-milestone-legend-line {
    width: 20px;
    height: 0;
    border-bottom: 2px dotted #091c2d;
    flex-shrink: 0;
}

.charity-milestone-legend-text {
    color: #333;
    font-size: 0.85em;
    flex: 1;
    line-height: 1.3;
}

.bar-amount-label {
    font-size: 1em;
    color: #333;
    font-weight: bold;
    text-align: center;
    margin-top: 0.5em;
    min-height: 1.5em;
    flex-shrink: 0;
}


.bar-x-label {
    font-size: 1em;
    color: #333;
    font-weight: bold;
    text-align: center;
    margin-top: 0.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

.bar-chart-logo {
    object-fit: fill;
    margin-bottom: 0.3em;
    order: 2;
    flex-shrink: 0;
}

.bar-chart-name {
    font-weight: bold;
    color: #091c2d;
    font-size: 0.85em;
    line-height: 1.2;
    word-wrap: break-word;
    max-width: 120px;
    order: 1;
}

.chart-container {
    margin-bottom: 3em;
}

.chart-container h3 {
    margin-bottom: 1em;
}

.bar-chart {
    margin-bottom: 2em;
}

.bar-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    margin-bottom: 0.5em;
}

.milestone-marker {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #091c2d;
    z-index: 2;
}

.bar-label {
    font-size: 0.9em;
    color: #333;
}

.charity-chart-item {
    margin-bottom: 1.5em;
}

.charity-chart-label {
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #091c2d;
}

/* Charity Detail Page */
.back-link {
    display: inline-block;
    margin-bottom: 2em;
    color: #3353ff;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

.back-link:hover {
    text-decoration: underline;
}

.charity-intro {
    margin-bottom: 3em;
    padding-bottom: 2em;
    border-bottom: 2px solid #000;
}

.charity-intro h1 {
    text-align: left;
    margin-bottom: 1.5em;
}

.charity-intro-content {
    display: flex;
    align-items: flex-start;
    gap: 2em;
}

.charity-logo-container {
    flex-shrink: 0;
}

    .charity-logo-large {
        object-fit: fill;
    }

.charity-description {
    font-size: 1.3em;
    flex: 1;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

/* Milestones Section */
.milestones-section {
    margin-bottom: 3em;
}

.milestones-container {
    display: flex;
    gap: 3em;
    align-items: flex-start;
}

.milestones-list {
    flex: 1;
}

.milestone-item {
    margin-bottom: 1.5em;
    padding: 1em;
    background: #fff;
    border: 1px solid #ddd;
}

.milestone-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5em;
}

.milestone-label {
    font-family: Georgia, serif;
    font-weight: bold;
    color: #091c2d;
    white-space: nowrap;
    font-size: 1.3em;
    flex-shrink: 0;
    min-width: 140px;
    text-align: right;
}

.milestone-description {
    flex: 1;
    color: #333;
    margin: 0;
    font-size: 1.1em;
    line-height: 1.4;
}

/* Vertical Progress Bar */
.progress-bar-container {
    flex-shrink: 0;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: visible;
}

.progress-bar-legend {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin-bottom: 1.5em;
}

.progress-bar-legend-line {
    width: 30px;
    height: 0;
    border-bottom: 2px dotted #091c2d;
    flex-shrink: 0;
}

.progress-bar-legend-text {
    font-size: 0.9em;
    color: #333;
    font-family: Arial, sans-serif;
}

.progress-bar-label {
    font-weight: bold;
    margin-bottom: 1em;
    color: #091c2d;
    text-align: center;
}

.vertical-progress-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: visible;
}

.progress-bar-track {
    position: relative;
    width: 50px;
    height: 500px;
    background-color: transparent;
    border: 1px solid #ccc;
    margin-bottom: 1em;
}

.progress-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #e0e0e0;
    transition: height 0.5s ease, background-color 0.3s ease;
    z-index: 1;
}

.progress-milestone-marker {
    position: absolute;
    left: 0;
    width: 100%;
    height: 0;
    border-bottom: 2px dotted #091c2d;
    z-index: 2;
    transform: translateY(50%);
    cursor: pointer;
}

.progress-milestone-marker.milestone-tooltip-trigger:hover,
.progress-milestone-marker.milestone-tooltip-trigger.active {
    z-index: 11;
}

.progress-bar-value {
    font-family: Georgia, serif;
    font-weight: bold;
    color: #3353ff;
    font-size: 1.3em;
}

.milestone-amount-label {
    position: absolute;
    right: -120px;
    transform: translateY(-50%);
    color: #000;
    font-family: Arial, sans-serif;
    font-weight: normal;
    font-size: 0.85em;
    white-space: nowrap;
    padding-left: 10px;
}

/* Donation Form */
.donation-section {
    margin-bottom: 3em;
    text-align: center;
}

.donation-success-message {
    margin-top: 1em;
    padding: 0.8em 1.5em;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
}

.donation-success-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.donation-success-message.hidden {
    display: none;
}

.donation-form {
    max-width: 500px;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    border: 1px solid #ddd;
    text-align: left;
}

.donation-form.hidden {
    display: none;
}

.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: #091c2d;
}

.form-group input {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ccc;
    font-family: Arial, sans-serif;
    font-size: 1em;
}

.form-group input:focus {
    outline: none;
    border-color: #3353ff;
}

/* Donations Log */
.donations-log {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 2px solid #000;
}

.donations-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
}

.donations-table thead {
    background-color: #f5f5f5;
    border-bottom: 2px solid #000;
}

.donations-table th {
    padding: 1em;
    text-align: left;
    font-weight: bold;
    color: #091c2d;
    border-bottom: 1px solid #ddd;
}

.donations-table td {
    padding: 1em;
    border-bottom: 1px solid #ddd;
}

.donations-table tbody tr:hover {
    background-color: #fafafa;
}

.donor-name {
    font-weight: bold;
    color: #091c2d;
}

.donation-amount {
    color: #3353ff;
    font-weight: bold;
}

.donation-charity {
    color: #091c2d;
    font-weight: 500;
    font-size: 0.9em;
}

.donation-time {
    color: #666;
    font-size: 0.9em;
}

.no-donations {
    text-align: center;
    color: #666;
    padding: 2em;
}

/* Hidden donations (for view more functionality) */
.hidden-donation {
    display: none;
}

/* View More Button Container */
.view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5em;
    margin-bottom: 1em;
}

/* View More Button */
.btn-view-more {
    background-color: #3353ff;
    color: #fff;
    padding: 0.8em 2.5em;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-view-more:hover {
    background-color: #091c2d;
}

.btn-view-more:active {
    transform: scale(0.98);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    .charities-grid {
        grid-template-columns: 1fr;
    }

    .charity-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
    }

    .charity-row-button {
        width: 100%;
    }

    .charity-row-button .btn-view {
        width: 100%;
        text-align: center;
    }

    .milestones-chart-container {
        flex-direction: column;
        gap: 1em;
        min-height: auto;
        margin-bottom: 2em;
    }

    .y-axis-labels {
        display: none;
    }

    .bars-container {
        display: flex;
        flex-wrap: wrap;
        gap: 1em;
        row-gap: 3em;
        justify-content: center;
        padding-bottom: 2em;
        align-content: flex-start;
    }

    .bar-item {
        flex: 0 1 calc((100% - 5em) / 6);
        min-width: 60px;
        max-width: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 250px;
    }

    .bar-chart-track {
        width: 100%;
        min-height: 20px;
        max-height: 250px;
        margin-top: auto;
        margin-bottom: 0;
    }

    .bar-value {
        font-size: 0.75em;
        margin-top: 0.3em;
    }

    .bar-label {
        margin-top: 0.5em;
        gap: 0.3em;
    }

    .bar-label-name {
        font-size: 0.7em;
        max-width: 70px;
    }

    .bar-label-logo {
        max-width: 40px;
        max-height: 40px;
    }

    .bar-label-logo-spacer {
        height: 40px;
    }

    .milestone-tooltip {
        max-width: 180px;
        font-size: 0.75em;
        padding: 0.5em 0.6em;
        white-space: normal;
        bottom: auto;
        top: -10px;
        transform: translateX(-50%) translateY(-100%);
    }

    .milestone-tooltip::after {
        top: auto;
        bottom: -10px;
        border-top-color: transparent;
        border-bottom-color: #091c2d;
    }

    .milestone-tooltip strong {
        font-size: 0.95em;
    }

    .milestone-tooltip-trigger.active {
        z-index: 11;
    }

    .milestone-legend {
        margin-top: 1.5em;
        padding-top: 1em;
    }

    .milestone-legend h3 {
        font-size: 1em;
        margin-bottom: 0.8em;
    }

    .milestone-legend-items {
        gap: 0.6em;
    }

    .milestone-legend-item {
        flex-wrap: wrap;
        gap: 0.5em;
    }

    .milestone-legend-number {
        font-size: 1em;
        min-width: 20px;
    }

    .milestone-legend-line {
        width: 25px;
        height: 0;
        border-bottom: 2px dotted #091c2d;
    }

    .milestone-legend-text {
        font-size: 0.85em;
        width: 100%;
        margin-left: 45px;
    }

    .charity-milestone-legend {
        margin-top: 0.6em;
        padding-top: 0.6em;
        font-size: 0.75em;
    }

    .charity-milestone-legend-item {
        gap: 0.4em;
        margin-bottom: 0.4em;
    }

    .charity-milestone-legend-line {
        width: 15px;
        height: 0;
        border-bottom: 2px dotted #091c2d;
    }

    .charity-milestone-legend-text {
        font-size: 0.75em;
    }

    .container {
        padding: 15px;
    }

    .charity-intro-content {
        flex-direction: column;
        align-items: center;
    }

    .charity-intro h1 {
        text-align: center;
    }

    .milestones-container {
        flex-direction: column;
    }

    .progress-bar-container {
        width: 100%;
        margin-top: 2em;
    }

    .progress-bar-track {
        height: 400px;
    }

    .milestone-amount-label {
        right: -90px;
        font-size: 0.75em;
        padding-left: 8px;
    }
    
    .progress-bar-container {
        width: 200px;
        overflow: visible;
    }

    .donations-table {
        font-size: 0.9em;
    }

    .donations-table th,
    .donations-table td {
        padding: 0.8em 0.5em;
    }

    .bar-wrapper {
        height: 30px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    .btn-donate {
        padding: 0.8em 2em;
        font-size: 1em;
    }
}

/* ECharts Container Styles */
#main-chart-container,
#progress-chart-container,
#office-chart-container {
    background-color: #fafafa;
    border: none;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

/* Chart logos are now embedded in ECharts via graphic component */

.chart-logo-placeholder {
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9em;
    background: #f5f5f5;
    border-radius: 4px;
}

/* Single Logo Below Progress Charts */
.single-chart-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid #e0e0e0;
}

.milestones-container {
    display: flex;
    gap: 3em;
    align-items: flex-start;
}

.milestones-list {
    flex: 1;
}

.progress-bar-container {
    flex-shrink: 0;
    min-width: 400px;
}

/* Responsive adjustments for ECharts */
@media (max-width: 768px) {
    #main-chart-container {
        height: 700px !important;
        padding: 0 !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        width: calc(100% + 40px) !important;
        border: none !important;
        border-radius: 0 !important;
    }
    
    #progress-chart-container,
    #office-chart-container {
        height: 400px !important;
    }
    
    .milestones-container {
        flex-direction: column;
    }
    
    .progress-bar-container {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    #main-chart-container {
        height: 650px !important;
        padding: 0 !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        width: calc(100% + 30px) !important;
    }
    
    #progress-chart-container,
    #office-chart-container {
        height: 350px !important;
        padding: 10px;
    }
}

/* Auction Items Styles */
.auction-items-section {
    margin-bottom: 3em;
}

.auction-item-row {
    display: flex;
    align-items: flex-start;
    padding: 1.5em;
    margin-bottom: 2em;
    background: #fff;
    border: 1px solid #ddd;
    gap: 2em;
}

.auction-item-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auction-item-square-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.auction-item-placeholder {
    width: 200px;
    height: 200px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.1em;
    background: #f5f5f5;
}

.auction-item-description {
    flex: 1;
    color: #333;
}

.auction-item-description h3 {
    margin-bottom: 0.5em;
    color: #091c2d;
    font-size: 1.5em;
}

.auction-item-description p {
    margin: 0;
    line-height: 1.6;
}

.auction-item-winner {
    flex-shrink: 0;
    width: 200px;
}

.winner-box {
    background-color: #3353ff;
    color: #fff;
    padding: 1em;
    border-radius: 4px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.winner-label {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 0.5em;
    color: #fff;
}

.winner-name {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 0.3em;
    color: #fff;
}

.winner-amount {
    font-size: 0.9em;
    color: #fff;
    opacity: 0.9;
}

.winner-empty {
    font-size: 0.9em;
    color: #fff;
    opacity: 0.7;
    font-style: italic;
}

.no-items {
    text-align: center;
    color: #666;
    padding: 2em;
    font-size: 1.1em;
}

.total-contributions {
    text-align: center;
    padding: 2em;
    background: #fff;
    border: 1px solid #ddd;
    margin-top: 2em;
}

.total-contributions-label {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 0.5em;
}

.total-contributions-amount {
    font-size: 2em;
    font-weight: bold;
    color: #3353ff;
    font-family: Georgia, serif;
}

/* Auction Item Container */
.auction-item-container {
    margin-bottom: 3em;
    padding-bottom: 2em;
    border-bottom: 2px solid #000;
}

.auction-item-container:last-child {
    border-bottom: none;
}

/* Bidders Section */
.auction-item-bidders {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid #ddd;
}

.auction-item-bidders h4 {
    font-size: 1.3em;
    margin-bottom: 1em;
    color: #091c2d;
    font-weight: bold;
}

.bidders-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    background: #fff;
    margin-top: 1em;
}

.bidders-table thead {
    background-color: #f5f5f5;
    border-bottom: 2px solid #000;
}

.bidders-table th {
    padding: 0.8em;
    text-align: left;
    font-weight: bold;
    color: #091c2d;
    border-bottom: 1px solid #ddd;
    font-size: 0.95em;
}

.bidders-table td {
    padding: 0.8em;
    border-bottom: 1px solid #ddd;
    font-size: 0.9em;
}

.bidders-table tbody tr:hover {
    background-color: #fafafa;
}

.bidders-table tbody tr.winner-bid {
    background-color: #e8f4f8;
    font-weight: bold;
}

.bidder-name {
    font-weight: 500;
    color: #091c2d;
}

.bid-amount {
    color: #3353ff;
    font-weight: bold;
}

.bid-time {
    color: #666;
    font-size: 0.85em;
}

.no-bids {
    color: #666;
    font-style: italic;
    padding: 1em 0;
}

/* Responsive adjustments for auction items */
@media (max-width: 768px) {
    .auction-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
    }
    
    .auction-item-image {
        width: 100%;
        height: auto;
    }
    
    .auction-item-square-image {
        width: 100%;
        height: auto;
        max-width: 300px;
        max-height: 300px;
    }
    
    .auction-item-placeholder {
        width: 100%;
        height: auto;
        min-height: 200px;
        max-width: 300px;
    }
    
    .auction-item-winner {
        width: 100%;
    }
    
    .winner-box {
        width: 100%;
    }
    
    .bidders-table {
        font-size: 0.85em;
    }
    
    .bidders-table th,
    .bidders-table td {
        padding: 0.6em 0.4em;
    }
}

