/* Public Styles */
.adm-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Photo Circle */
.adm-photo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    margin: 0 auto 15px auto;
}

.adm-student-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.adm-student-card:hover {
    transform: translateY(-5px);
}

.adm-student-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    display: block;
    /* Ensure it behaves nicely */
    margin-left: auto;
    margin-right: auto;
}

.adm-student-name {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.adm-student-rank {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

/* Reuse variables if possible, or define here locally for public isolation */
.adm-rank-Mukyu,
.adm-rank-Rokyu {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.adm-rank-Gokyu {
    background-color: #fcc419;
    color: #333;
}

.adm-rank-Yonkyu {
    background-color: #ff922b;
    color: #fff;
}

.adm-rank-Sankyu {
    background-color: #51cf66;
    color: #fff;
}

.adm-rank-Nikyu {
    background-color: #2d2869;
    color: #fff;
}

.adm-rank-Ikkyu {
    background-color: #8c6239;
    color: #fff;
}

.adm-rank-Shodan,
.adm-rank-Nidan,
.adm-rank-Sandan,
.adm-rank-Yondan,
.adm-rank-Godan,
.adm-rank-Rokudan {
    background-color: #212529;
    color: #fff;
}

/* Stats */
.adm-stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.adm-stat-box {
    flex: 1;
    min-width: 200px;
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.adm-stat-number {
    font-size: 3em;
    font-weight: bold;
    color: #444;
}

.adm-stat-label {
    color: #777;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.adm-stats-charts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.adm-chart-box {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    border: 1px solid #eee;
    background: #fff;
}

/* Pie Chart */
.adm-pie-chart {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.adm-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    font-size: 0.9em;
}

.adm-legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 5px;
}

/* Bar Chart */
.adm-bar-chart {
    display: flex;
    align-items: flex-end;
    height: 200px;
    gap: 10px;
    padding-top: 20px;
    border-bottom: 1px solid #eee;
}

.adm-bar-item {
    flex: 1;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.adm-bar-fill {
    width: 100%;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.3s ease;
}

.adm-bar-count {
    position: absolute;
    top: -20px;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 0.8em;
}

.adm-bar-label {
    margin-top: 5px;
    font-size: 0.75em;
    transform: rotate(-45deg);
    white-space: nowrap;
    transform-origin: top center;
}