body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color:hsl(0, 0.00%, 96.10%);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
th {
    background-color: #f8f9fa;
    font-weight: bold;
}
tr:hover {
    background-color: #f5f5f5;
}

.reload-data {
    padding: 10px 20px;
    border: none;
    background-color: #8fb6e0;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.small-header {
    display: none;
}

@media screen and (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    .small-header {
        display: inline;
        color: #707070;
        font-size: medium;
        margin-right: 10px;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        /* padding-left: 50%; */
        white-space: normal;
        text-align: left;
    }
    
    td:before {
        position: absolute;
        left: 12px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        content: attr(data-label);
    }
    
    tr:last-child td:last-child {
        border-bottom: none;
    }
}
.error-message {
    color: #dc3545;
    text-align: center;
    padding: 20px;
    background-color: #f8d7da;
    border-radius: 4px;
    margin-top: 20px;
    display: none;
}
.tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.tab-button {
    padding: 12px 24px;
    border: none;
    background-color: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button::before {
    font-family: 'Material Icons';
    font-size: 20px;
}

.tab-button[data-tab="conferencistas-list"]::before {
    content: '\e8e9';
}

.tab-button[data-tab="incricoes-list"]::before {
    content: '\e8fe';
}

.tab-button[data-tab="grupos-list"]::before {
    content: '\e7fb';
}
.tab-button:hover {
    background-color: #e9ecef;
}
.tab-button.active {
    background-color: #aa3365;
    color: white;
}
.counter {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 5px;
}

.tab-button.active .counter {
    background-color: rgba(255, 255, 255, 0.2);
}
.loading {
    text-align: center;
    padding: 20px;
    display: none;
}
.table-container {
    width: 100%;
}
.search-container {
    margin-right: 20px;
}

.form-control {
    width: 100%;
    margin-bottom: 7px;
    font-size: 16px;
    padding: 7px;
}

#enrollmentForm {
    margin: 12px;
}

.logo {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    align-items: center;
    display: flex;
    justify-content: center;
}

.logo img {
    width: 150px;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.group-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    page-break-inside: avoid;
    margin-bottom: 20px;
}

/* Team Print Template Styles */
.team-print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.team-logo-container {
    width: 80px;
}

.team-logo {
    width: 100%;
    height: auto;
}

.team-title {
    text-align: center;
    flex-grow: 1;
}

.team-title h1 {
    color: #0056b3;
    font-size: 18px;
    margin: 0;
    font-weight: bold;
}

.team-title h2 {
    color: #aa3365;
    font-size: 20px;
    margin: 5px 0 0 0;
    font-weight: bold;
}

.team-number {
    background-color: #aa3365;
    color: white;
    text-align: center;
    padding: 10px;
    margin: 10px 0;
}

.team-number h2 {
    margin: 0;
    font-size: 24px;
    color: white;
    font-weight: bold;
}

.team-gender {
    color: rgb(148, 148, 148);
    text-align: center;
    display: inline;
    font-size: 16px;
}

.team-participants-container {
    width: 100%;
}

.team-participants-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.team-participants-table th,
.team-participants-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.team-participants-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.team-participants-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.participant-number {
    display: inline-block;
    margin-right: 8px;
    font-weight: bold;
}

/* Print styles */
@media print {
    body {
        background-color: white;
        margin: 0;
        padding: 0;
    }
    
    .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
    
    .tabs, .search-container, button:not(.tab-button) {
        display: none !important;
    }
    
    .group-card {
        page-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .groups-grid {
        display: block;
    }
}

.group-header h3 {
    margin-top: 0;
    color: #ffffff;
    font-size: xx-large;
    margin-bottom: 0;
    width: 100%;
    word-break: break-word;
}

.group-header span {
    font-size: small;
    color: white;
    width: 100%;
    word-break: break-word;
}

.group-participants {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.group-participant {
    padding: 8px;
    border-bottom: 1px solid #eee;
    word-break: break-word;
}

.group-participant-male {
    background-color: #e3f2fd;
}

.group-participant-female {
    background-color: #fce4ec;
}

/* Add your CSS here */

.male-row {
    background-color: #e0f2f7; /* Light blue */
}

.female-row {
    background-color: #fce4ec; /* Light pink */
}

@media print {
    /* Reset display properties for printing */
    body {
        margin: 0;
        padding: 0;
        background-color: white;
    }

    .container {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        background-color: white;
    }

    /* Hide non-essential elements */
    .tabs,
    .tab-button,
    .reload-data,
    .search-container,
    .loading,
    .error-message {
        display: none !important;
    }
    
    .logo {
        display: none !important;
        /* display: block !important;
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
        margin: 20px 0; */
    }

    #refresh-countdown {
        display: none!important;
    }

    /* Ensure groups container is visible */
    #divGrupos,
    #groupsContainer {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
        /* top: 25mm; */
        position: relative;
    }
    
    /* Format group cards for printing */
    .groups-grid {
        display: inline;
    }

    h2 {
        font-size: 70px !important;
    }

    .group-card {
        display: block !important;
        page-break-after: always;
        page-break-inside: avoid;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .group-header {
        width: 100%;
        min-width: 100%;
        padding: 20px 0;
        margin-bottom: 20px;
    }

    .group-participants {
        width: 100%;
    }

    .group-participant {
        padding: 10px;
        font-size: 18pt;
        border-bottom: 1px solid #ccc;
    }

    .group-participant-male {
        background-color: #f0f8ff !important;
    }

    .group-participant-female {
        background-color: #fff0f5 !important;
    }
}