/* =================================================================
   ADDITIONAL PAGE STYLES
   ================================================================= */

/* Breadcrumb */
.breadcrumb-section {
    background: var(--bg-light);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb .separator {
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Page Header */
.page-header {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(255, 107, 157, 0.05));
}

.contest-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-grow: 1;
}

.contestant-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}
.contestant-header button {
    width: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.contest-image-large {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.contest-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contest-image-large .initials {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
}

.contest-info {
    flex: 1;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contest-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.meta-item strong {
    color: var(--text-dark);
}

/* Content Section */
.content-section {
    padding: 4rem 0;
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.view-btn:hover,
.view-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--light-purple);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.categories-grid.list-view {
    grid-template-columns: 1fr;
}

.category-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.categories-grid.list-view .category-card {
    flex-direction: row;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.categories-grid.list-view .category-image {
    width: 250px;
    height: auto;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-initials {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
}

.category-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.category-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex: 1;
}

.category-detail-item {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.95rem;
}

.category-detail-item strong {
    color: var(--text-dark);
}

.category-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.btn-view-contestants {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-contestants:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

/* Contestants Grid */
.contestants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.contestant-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.contestant-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contestant-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.contestant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contestant-initials {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.contestant-content {
    padding: 1.5rem;
}

.contestant-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contestant-code {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--light-purple);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-vote {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-vote:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

/* Voting Page */
.voting-container {
    max-width: 800px;
    margin: 0 auto;
}

.voting-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.contestant-details {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.contestant-image-large {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.contestant-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contestant-image-large .initials {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
}

.voting-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

/* Form styling to match existing input styles */
.form-group select,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    background-color: white;
    cursor: pointer;
}

.vote-summary {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    font-size: 1.1rem;
}

.vote-summary strong {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.bulk-votes-info {
    background: var(--light-purple);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.bulk-votes-info h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.bulk-vote-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(108, 99, 255, 0.2);
}

.bulk-vote-item:last-child {
    border-bottom: none;
}

/* Results Page */
.results-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.results-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-box {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    text-align: center;
}

.info-box h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-box p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.refresh-note {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.results-table-container {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table thead {
    background: var(--bg-light);
}

.results-table th,
.results-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.results-table th {
    font-weight: 600;
    color: var(--text-dark);
}

.contestant-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contestant-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    flex-shrink: 0;
}

.contestant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.percentage-bar {
    height: 25px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.percentage-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Invoice Page */
.invoice-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.invoice-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.invoice-body {
    padding: 2rem;
}

.invoice-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.invoice-table-container {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.invoice-table th,
.invoice-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.invoice-table th {
    background: var(--bg-light);
    font-weight: 600;
}

.invoice-total {
    text-align: right;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.invoice-footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    font-style: italic;
    color: var(--text-light);
}

.print-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.print-btn:hover {
    opacity: 0.9;
}

/* Support/Contact Page */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Category Checkbox Group for Multi-Select */
.categories-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-light);
    max-height: 300px;
    overflow-y: auto;
}

.category-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-checkbox-item:hover {
    border-color: var(--primary-color);
    background: var(--light-purple);
}

.category-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.category-checkbox-item:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--light-purple);
}

.category-checkbox-label {
    flex: 1;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: var(--light-purple);
}

.file-upload input {
    display: none;
}

/* Error Pages */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.error-content {
    max-width: 500px;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--light-purple);
}

.faq-question h4 {
    margin: 0;
    color: var(--text-dark);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 968px) {
    .contest-header {
        flex-direction: column;
        text-align: center;
    }

    .contest-meta {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contestant-details {
        flex-direction: column;
        text-align: center;
    }

    .invoice-info {
        grid-template-columns: 1fr;
    }

    .invoice-table-container {
        padding: 1.5rem;
    }

    .invoice-table {
        font-size: 0.9rem;
        min-width: 600px;
        white-space: nowrap;
    }

    .invoice-table th,
    .invoice-table td {
        padding: 0.7rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .results-table-container {
        padding: 1.5rem;
    }

    .results-table {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .results-table th,
    .results-table td {
        padding: 0.7rem 0.5rem;
    }

    .contestant-cell {
        min-width: 200px;
    }

    .contestant-avatar {
        width: 40px;
        height: 40px;
    }

    .percentage-bar {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .view-controls {
        display: none;
    }

    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .results-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .results-table-container {
        padding: 1rem;
    }

    .results-table {
        font-size: 0.8rem;
    }

    .results-table th,
    .results-table td {
        padding: 0.5rem 0.3rem;
    }

    .contestant-cell {
        min-width: 180px;
        gap: 0.5rem;
    }

    .contestant-cell div {
        font-size: 0.9rem;
    }

    .contestant-cell small {
        font-size: 0.75rem;
    }

    .contestant-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .percentage-bar {
        min-width: 80px;
        height: 20px;
    }

    .percentage-fill {
        font-size: 0.75rem;
    }

    .invoice-table-container {
        padding: 1rem;
    }

    .invoice-table {
        font-size: 0.8rem;
        min-width: 500px;
    }

    .invoice-table th,
    .invoice-table td {
        padding: 0.5rem 0.3rem;
    }

    .section-header-inline {
        flex-direction: column;
        gap: 1rem;
    }
}
