.tgal-dashboard-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:20px;

    margin-top:25px;

}

.tgal-card{
    background:#fff;
    border:1px solid #ddd;
    border-radius:10px;
    padding:20px;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.tgal-card h2{
    margin-top:0;
    margin-bottom:18px;
    font-size:20px;
    color:#1d2327;
}

.tgal-card p{
    margin:8px 0;
    font-size:15px;
}

.tgal-progress-fill{
    height:100%;
    background:#2271b1;
    transition:width .4s ease;
}
.tgal-progress {
    width:100%;
    border-radius:20px;
    overflow:hidden;
    margin:15px 0 10px;
    height:20px;
    background:#e6e6e6 !important;
    border:2px solid #01101F;
}

.tgal-player-count{
    font-size:18px;
    margin:10px 0 5px;
}

.tgal-percent{
    color:#666;
    font-size:13px;
    
}
/* ==========================================
   Dashboard Summary Cards
========================================== */

.tgal-summary-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin:25px 0 30px;
}

.tgal-summary-card{
    background:#fff;
    border-radius:12px;
    padding:20px;
    display:flex;
    align-items:center;
    gap:18px;
    box-shadow:0 3px 12px rgba(0,0,0,.08);
    transition:.2s ease;
}

.tgal-summary-card:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 20px rgba(0,0,0,.12);
}

.tgal-summary-icon{
    width:56px;
    height:56px;
    border-radius:50%;
    background:#f4f6fb;
    display:flex;
    align-items:center;
    justify-content:center;
}
.tgal-summary-icon .dashicons{
    font-size:28px;
    width:28px;
    height:28px;
    color:#2271b1;
}

.tgal-summary-content{
    flex:1;
}

.tgal-summary-value{
    font-size:28px;
    font-weight:700;
    line-height:1.2;
    color:#1d2327;
}

.tgal-summary-title{
    margin-top:4px;
    color:#646970;
    font-size:14px;
}

/* Registration Details Grid */

.tgal-info-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(360px,1fr));

    gap:20px;

    margin:20px 0;

}


/* Card */

.tgal-info-card{

    background:#fff;

    border-radius:12px;

    padding:20px;

    box-shadow:0 1px 4px rgba(0,0,0,.08);

}


/* Title */

.tgal-info-card-title{

    margin:0 0 18px;

    font-size:22px;

    font-weight:600;

}


/* Rows */

.tgal-info-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:10px 0;

    border-bottom:1px solid #eee;

}


.tgal-info-row:last-child{

    border-bottom:none;

}


.tgal-info-label{

    color:#666;

    font-weight:500;

}


.tgal-info-value{

    font-weight:600;

    text-align:right;

}
/*----------------*/

.tgal-category-list{
    margin:0;
    padding-left:18px;
}

.tgal-category-list li{
    margin:6px 0;
}

/* ==========================================
   PUBLIC TOURNAMENT DASHBOARD
========================================== */

.tgal-public-dashboard {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}


/* ==========================================
   SUMMARY CARDS
========================================== */

.tgal-public-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 0 35px;
}

.tgal-public-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.tgal-public-card-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tgal-public-icon {
    font-size: 30px;
    line-height: 1;
    flex-shrink: 0;
}

.tgal-public-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: #8B1538;
}

.tgal-public-label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}


/* ==========================================
   SECTION TITLE
========================================== */

.tgal-public-section-title {
    margin: 10px 0 22px;
    padding: 0 0 12px;
    font-size:20px;
    color: #1d2327;
    border-bottom: 2px solid #8B1538;
}


/* ==========================================
   EVENT CARDS
========================================== */

/* ==========================================
   COMPACT PUBLIC EVENT CARDS
========================================== */

.tgal-public-event {
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:8px;
    padding:14px 16px;
    margin-bottom:10px;
    box-shadow:0 1px 4px rgba(0,0,0,.04);
}

.tgal-public-event-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:9px;
}

.tgal-event-name {
    font-size:15px;
    font-weight:600;
    color:#1d2327;
}

.tgal-event-count {
    font-size:14px;
    font-weight:500;
    color:#646970;
    white-space:nowrap;
}

.tgal-public-dashboard .tgal-progress {
    height:10px;
}

.tgal-public-event-footer {
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-top:7px;
    font-size:12px;
    font-weight:500;
    color:#646970;
}



/* ==========================================
   PUBLIC PROGRESS BAR
========================================== */

.tgal-public-dashboard .tgal-progress {
    width: 100%;
    height: 12px;
    margin: 0;
    background: #e5e7eb !important;
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.tgal-public-dashboard .tgal-progress-fill {
    height: 100%;
    background: #8B1538;
    border-radius: 20px;
    transition: width 0.4s ease;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .tgal-public-dashboard {
        padding: 18px;
    }

    .tgal-public-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tgal-public-event-header {
        align-items: flex-start;
    }

    .tgal-event-name {
        font-size: 15px;
    }

    .tgal-event-count {
        font-size: 13px;
    }

}
@media (max-width: 600px) {

    .tgal-public-event-footer {
        flex-direction:column;
        gap:4px;
    }

}
/* ==========================================
   PUBLIC INSTITUTE LEADERBOARD
========================================== */

/* ==========================================
   COMPACT PUBLIC LEADERBOARD
========================================== */

.tgal-public-leaderboard {
    display:flex;
    flex-direction:column;
    gap:8px;
}

.tgal-public-leaderboard-row {
    display:grid;
    grid-template-columns:42px 1fr auto;
    align-items:center;
    gap:12px;

    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:8px;

    padding:12px 16px;

    box-shadow:0 1px 4px rgba(0,0,0,.04);
}

.tgal-public-leaderboard-rank {
    font-size:18px;
    font-weight:600;
    text-align:center;
}

.tgal-public-leaderboard-institute {
    font-size:15px;
    font-weight:600;
    color:#1d2327;
}

.tgal-public-leaderboard-count {
    font-size:14px;
    font-weight:600;
    color:#8B1538;
    white-space:nowrap;
}

@media (max-width:600px) {

    .tgal-public-leaderboard-row {
        grid-template-columns:42px 1fr;
        gap:10px;
        padding:14px;
    }

    .tgal-public-leaderboard-count {
        grid-column:2;
        font-size:13px;
    }

}
/*-----------draws css------------------------
*
*
*
*
*-------------------------------------*/
.tgal-draw-section {
    margin-top: 24px;
    max-width: 1000px;
}

.tgal-draw-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tgal-draw-section-header h2 {
    margin: 0 0 6px;
}

.tgal-draw-section-count {
    margin: 0;
}

.tgal-draw-table th,
.tgal-draw-table td {
    vertical-align: middle;
}

.tgal-draw-table th:nth-child(2),
.tgal-draw-table td:nth-child(2) {
    width: 180px;
}

.tgal-draw-table th:nth-child(3),
.tgal-draw-table td:nth-child(3) {
    width: 140px;
}

