/* /Components/AwardDashbord.razor.rz.scp.css */
*[b-6pf16l36o8] {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body[b-6pf16l36o8] {
    font-family: 'Sarabun', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container[b-6pf16l36o8] {
    max-width: 1400px;
    margin: 0 auto;
}

.header[b-6pf16l36o8] {
    text-align: center;
    margin-bottom: 30px;
}

.header h1[b-6pf16l36o8] {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-grid[b-6pf16l36o8] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card[b-6pf16l36o8] {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.card:hover[b-6pf16l36o8] {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header[b-6pf16l36o8] {
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-header[b-6pf16l36o8]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 100%);
}

.card-blue[b-6pf16l36o8] {
    background: linear-gradient(135deg, #4285f4 0%, #1976d2 100%);
}

.card-green[b-6pf16l36o8] {
    background: linear-gradient(135deg, #34a853 0%, #2e7d32 100%);
}

.card-purple[b-6pf16l36o8] {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

.card-orange[b-6pf16l36o8] {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.card-red[b-6pf16l36o8] {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.card-indigo[b-6pf16l36o8] {
    background: linear-gradient(135deg, #3f51b5 0%, #303f9f 100%);
}

.card-pink[b-6pf16l36o8] {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
}

.card-teal[b-6pf16l36o8] {
    background: linear-gradient(135deg, #009688 0%, #00796b 100%);
}

.card-icon[b-6pf16l36o8] {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    position: relative;
}

.card-badge[b-6pf16l36o8] {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
}

.card-content[b-6pf16l36o8] {
    padding: 20px;
}

.card-meta[b-6pf16l36o8] {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.meta-tag[b-6pf16l36o8] {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.meta-tag.secondary[b-6pf16l36o8] {
    background: #f3e5f5;
    color: #7b1fa2;
}

.card-title[b-6pf16l36o8] {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-description[b-6pf16l36o8] {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-footer[b-6pf16l36o8] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.card-date[b-6pf16l36o8] {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-link[b-6pf16l36o8] {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.card-link:hover[b-6pf16l36o8] {
    color: #0d47a1;
}

.stats-grid[b-6pf16l36o8] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card[b-6pf16l36o8] {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover[b-6pf16l36o8] {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-icon[b-6pf16l36o8] {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-number[b-6pf16l36o8] {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label[b-6pf16l36o8] {
    color: #666;
    font-size: 1rem;
}

.search-section[b-6pf16l36o8] {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.search-filters[b-6pf16l36o8] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group[b-6pf16l36o8] {
    display: flex;
    flex-direction: column;
}

.filter-group label[b-6pf16l36o8] {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.filter-select[b-6pf16l36o8] {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
    color: #495057;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-select:focus[b-6pf16l36o8] {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.search-bar[b-6pf16l36o8] {
    margin-bottom: 20px;
}

.search-bar label[b-6pf16l36o8] {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.search-input-container[b-6pf16l36o8] {
    display: flex;
    gap: 10px;
}

.search-input[b-6pf16l36o8] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus[b-6pf16l36o8] {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.search-button[b-6pf16l36o8] {
    background: linear-gradient(135deg, #4285f4, #1976d2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-button:hover[b-6pf16l36o8] {
    background: linear-gradient(135deg, #1976d2, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.category-tags[b-6pf16l36o8] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tag-label[b-6pf16l36o8] {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 10px;
}

.category-tag[b-6pf16l36o8] {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tag:hover[b-6pf16l36o8] {
    background: #e9ecef;
    color: #495057;
}

.category-tag.active[b-6pf16l36o8] {
    background: linear-gradient(135deg, #4285f4, #1976d2);
    color: white;
    border-color: #4285f4;
}

@media (max-width: 768px) {
    .dashboard-grid[b-6pf16l36o8] {
        grid-template-columns: 1fr;
    }

    .stats-grid[b-6pf16l36o8] {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .header h1[b-6pf16l36o8] {
        font-size: 2rem;
    }

    .search-filters[b-6pf16l36o8] {
        grid-template-columns: 1fr;
    }

    .search-input-container[b-6pf16l36o8] {
        flex-direction: column;
    }

    .search-button[b-6pf16l36o8] {
        width: 100%;
    }

    .category-tags[b-6pf16l36o8] {
        justify-content: center;
    }
}
/* /Components/SharedTable.razor.rz.scp.css */
 .modern-table[b-h46p5u155s] {
     background: #fff;
     border-radius: 12px;
     overflow: hidden;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
     border: none;
     margin: 0;
 }

 .modern-table thead[b-h46p5u155s] {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     color: white;
 }

 .modern-table thead th[b-h46p5u155s] {
     padding: 1.2rem 1.5rem;
     font-weight: 600;
     font-size: 0.95rem;
     letter-spacing: 0.5px;
     text-transform: uppercase;
     border: none;
     position: relative;
 }

 .modern-table tbody tr[b-h46p5u155s] {
     transition: all 0.3s ease;
     border-bottom: 1px solid #f1f3f4;
 }

 .modern-table tbody tr:hover[b-h46p5u155s] {
     background-color: #f8f9ff;
     transform: translateY(-1px);
     box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
 }

 .modern-table tbody tr:last-child[b-h46p5u155s] {
     border-bottom: none;
 }

 .modern-table tbody td[b-h46p5u155s] {
     padding: 1.2rem 1.5rem;
     vertical-align: middle;
     border: none;
     font-size: 0.95rem;
     color: #2d3748;
 }

 .modern-table tbody td:first-child[b-h46p5u155s] {
     font-weight: 600;
     color: #4a5568;
 }

 .modern-table tbody td:nth-child(2)[b-h46p5u155s] {
     color: #718096;
     font-family: 'Courier New', monospace;
     font-size: 0.9rem;
 }

 .approve-btn[b-h46p5u155s] {
     background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
     border: none;
     padding: 0.6rem 1.4rem;
     border-radius: 8px;
     color: white;
     font-weight: 500;
     font-size: 0.9rem;
     transition: all 0.3s ease;
     box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
     cursor: pointer;
     text-transform: none;
 }

 .approve-btn:hover[b-h46p5u155s] {
     background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
     transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
     color: white;
 }

 .approve-btn:active[b-h46p5u155s] {
     transform: translateY(0);
 }

 .table-container[b-h46p5u155s] {
     background: #fff;
     border-radius: 12px;
     padding: 0;
     margin: 1rem 0;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
 }

 .table-header[b-h46p5u155s] {
     padding: 1.5rem 1.5rem 0 1.5rem;
     border-bottom: 1px solid #e2e8f0;
     margin-bottom: 0;
 }

 .table-title[b-h46p5u155s] {
     font-size: 1.4rem;
     font-weight: 700;
     color: #2d3748;
     margin: 0 0 0.5rem 0;
 }

 .table-subtitle[b-h46p5u155s] {
     color: #718096;
     font-size: 0.95rem;
     margin: 0 0 1rem 0;
 }

 /* Responsive design */
 @media (max-width: 768px) {
     .modern-table thead[b-h46p5u155s] {
         display: none;
     }

     .modern-table tbody tr[b-h46p5u155s] {
         display: block;
         margin-bottom: 1rem;
         border-radius: 8px;
         box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
         border: none;
     }

     .modern-table tbody td[b-h46p5u155s] {
         display: block;
         padding: 0.8rem 1rem;
         border-bottom: 1px solid #f1f3f4;
         position: relative;
         padding-left: 45%;
     }

     .modern-table tbody td[b-h46p5u155s]:before {
         content: attr(data-label);
         position: absolute;
         left: 1rem;
         width: 40%;
         padding-right: 10px;
         white-space: nowrap;
         font-weight: 600;
         color: #4a5568;
     }

     .modern-table tbody td:last-child[b-h46p5u155s] {
         border-bottom: none;
         text-align: center;
         padding-left: 1rem;
     }

     .modern-table tbody td:last-child[b-h46p5u155s]:before {
         display: none;
     }
 }

 /* Loading animation for approved users */
 .approved-row[b-h46p5u155s] {
     background-color: #f0fff4 !important;
     animation: fadeOut-b-h46p5u155s 2s ease-in-out forwards;
 }

 @keyframes fadeOut-b-h46p5u155s {
     0% {
         opacity: 1;
     }

     50% {
         opacity: 0.5;
     }

     100% {
         opacity: 0.2;
     }
 }
/* /Components/StudentDashbord.razor.rz.scp.css */
.dashboard-container[b-s1eyunow1v] {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* Sidebar */
.sidebar[b-s1eyunow1v] {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.logo[b-s1eyunow1v] {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.logo h1[b-s1eyunow1v] {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu[b-s1eyunow1v] {
    list-style: none;
}

.nav-item[b-s1eyunow1v] {
    margin-bottom: 0.5rem;
}

.nav-link[b-s1eyunow1v] {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link[b-s1eyunow1v]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-link:hover[b-s1eyunow1v]::before,
.nav-link.active[b-s1eyunow1v]::before {
    transform: scaleY(1);
}

.nav-link:hover[b-s1eyunow1v],
.nav-link.active[b-s1eyunow1v] {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateX(8px);
}

.nav-icon[b-s1eyunow1v] {
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Main Content */
.main-content[b-s1eyunow1v] {
    padding: 2rem;
    overflow-y: auto;
}

.header[b-s1eyunow1v] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header h2[b-s1eyunow1v] {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.date-filter[b-s1eyunow1v] {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.date-filter input[b-s1eyunow1v],
.date-filter select[b-s1eyunow1v] {
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    color: #2d3748;
}

.date-filter label[b-s1eyunow1v] {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Stats Cards */
.stats-grid[b-s1eyunow1v] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card[b-s1eyunow1v] {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card[b-s1eyunow1v]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.stat-card:hover[b-s1eyunow1v]::before {
    left: 100%;
}

.stat-card:hover[b-s1eyunow1v] {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.stat-header[b-s1eyunow1v] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stat-icon[b-s1eyunow1v] {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon.total[b-s1eyunow1v] {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-icon.present[b-s1eyunow1v] {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.stat-icon.activity[b-s1eyunow1v] {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.stat-icon.late[b-s1eyunow1v] {
    background: linear-gradient(135deg, #f6ad55, #ed8936);
}

.stat-icon.leave[b-s1eyunow1v] {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

.stat-icon.absent[b-s1eyunow1v] {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.stat-value[b-s1eyunow1v] {
    font-size: 3rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label[b-s1eyunow1v] {
    color: #718096;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.stat-percentage[b-s1eyunow1v] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.percentage-up[b-s1eyunow1v] {
    color: #38a169;
}

.percentage-down[b-s1eyunow1v] {
    color: #e53e3e;
}

.percentage-neutral[b-s1eyunow1v] {
    color: #718096;
}

/* Progress Bars */
.progress-container[b-s1eyunow1v] {
    margin-top: 1rem;
}

.progress-bar[b-s1eyunow1v] {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill[b-s1eyunow1v] {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
}

.progress-total[b-s1eyunow1v] {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.progress-present[b-s1eyunow1v] {
    background: linear-gradient(90deg, #48bb78, #38a169);
}

.progress-activity[b-s1eyunow1v] {
    background: linear-gradient(90deg, #ed8936, #dd6b20);
}

.progress-late[b-s1eyunow1v] {
    background: linear-gradient(90deg, #f6ad55, #ed8936);
}

.progress-leave[b-s1eyunow1v] {
    background: linear-gradient(90deg, #4299e1, #3182ce);
}

.progress-absent[b-s1eyunow1v] {
    background: linear-gradient(90deg, #f56565, #e53e3e);
}

/* Charts Section */
.charts-section[b-s1eyunow1v] {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container[b-s1eyunow1v] {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-header[b-s1eyunow1v] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-title[b-s1eyunow1v] {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
}

.chart-placeholder[b-s1eyunow1v] {
    height: 300px;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 1.1rem;
    border: 2px dashed #e2e8f0;
    position: relative;
    overflow: hidden;
}

/* Donut Chart Simulation */
.donut-chart[b-s1eyunow1v] {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(#48bb78 0deg 144deg,
            #ed8936 144deg 180deg,
            #f6ad55 180deg 216deg,
            #4299e1 216deg 252deg,
            #f56565 252deg 288deg,
            #e2e8f0 288deg 360deg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-center[b-s1eyunow1v] {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #2d3748;
}

.donut-percentage[b-s1eyunow1v] {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.donut-label[b-s1eyunow1v] {
    font-size: 0.8rem;
    color: #718096;
}

/* Recent Activities */
.recent-activities[b-s1eyunow1v] {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item[b-s1eyunow1v] {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.activity-item:hover[b-s1eyunow1v] {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    margin: 0 -1rem;
    padding: 1rem;
}

.activity-item:last-child[b-s1eyunow1v] {
    border-bottom: none;
}

.activity-icon-small[b-s1eyunow1v] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.activity-content h4[b-s1eyunow1v] {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.activity-content p[b-s1eyunow1v] {
    font-size: 0.8rem;
    color: #718096;
}

.activity-time[b-s1eyunow1v] {
    margin-left: auto;
    font-size: 0.75rem;
    color: #a0aec0;
}

/* Students Table */
.students-section[b-s1eyunow1v] {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.table-header[b-s1eyunow1v] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-filter[b-s1eyunow1v] {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input[b-s1eyunow1v] {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus[b-s1eyunow1v] {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.students-table[b-s1eyunow1v] {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.students-table th[b-s1eyunow1v],
.students-table td[b-s1eyunow1v] {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.students-table th[b-s1eyunow1v] {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.students-table tr:hover[b-s1eyunow1v] {
    background: rgba(102, 126, 234, 0.05);
}

.status-badge[b-s1eyunow1v] {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
}

.status-present[b-s1eyunow1v] {
    background: rgba(72, 187, 120, 0.1);
    color: #38a169;
}

.status-late[b-s1eyunow1v] {
    background: rgba(237, 137, 54, 0.1);
    color: #dd6b20;
}

.status-leave[b-s1eyunow1v] {
    background: rgba(66, 153, 225, 0.1);
    color: #3182ce;
}

.status-absent[b-s1eyunow1v] {
    background: rgba(245, 101, 101, 0.1);
    color: #e53e3e;
}

/* Animations */
@keyframes slideIn-b-s1eyunow1v {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp-b-s1eyunow1v {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card[b-s1eyunow1v] {
    animation: slideIn-b-s1eyunow1v 0.6s ease forwards;
}

.stat-value[b-s1eyunow1v] {
    animation: countUp-b-s1eyunow1v 0.8s ease forwards;
}

.stat-card:nth-child(1)[b-s1eyunow1v] {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2)[b-s1eyunow1v] {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3)[b-s1eyunow1v] {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4)[b-s1eyunow1v] {
    animation-delay: 0.4s;
}

.stat-card:nth-child(5)[b-s1eyunow1v] {
    animation-delay: 0.5s;
}

.stat-card:nth-child(6)[b-s1eyunow1v] {
    animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-container[b-s1eyunow1v] {
        grid-template-columns: 1fr;
    }

    .sidebar[b-s1eyunow1v] {
        display: none;
    }

    .charts-section[b-s1eyunow1v] {
        grid-template-columns: 1fr;
    }

    .stats-grid[b-s1eyunow1v] {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-content[b-s1eyunow1v] {
        padding: 1rem;
    }

    .stats-grid[b-s1eyunow1v] {
        grid-template-columns: 1fr;
    }

    .header[b-s1eyunow1v] {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .date-filter[b-s1eyunow1v] {
        flex-wrap: wrap;
    }

    .students-table[b-s1eyunow1v] {
        font-size: 0.85rem;
    }

    .students-table th[b-s1eyunow1v],
    .students-table td[b-s1eyunow1v] {
        padding: 0.75rem 0.5rem;
    }
}
/* /Layout/MainLayout.razor.rz.scp.css */
/* Shared/MainLayout.razor.css */

/* === Header Navigation === */
.main-header[b-yikl53w0im] {
    background: var(--gradient);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(155, 89, 182, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container[b-yikl53w0im] {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.site-logo[b-yikl53w0im] {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.site-logo span[b-yikl53w0im] {
    color: var(--accent-color);
}

/* === Header Right Section === */
.header-right[b-yikl53w0im] {
    display: flex;
    align-items: center;
}

.notification-btn[b-yikl53w0im], .profile-btn[b-yikl53w0im] {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
    position: relative;
    color: white;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.notification-btn:hover[b-yikl53w0im], .profile-btn:hover[b-yikl53w0im] {
    background-color: rgba(255, 255, 255, 0.2);
}

.badge[b-yikl53w0im] {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Mobile Menu Toggle === */
.mobile-menu-toggle[b-yikl53w0im] {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* === Footer === */
.footer[b-yikl53w0im] {
    background: var(--gradient);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-top: 3rem;
    text-align: center;
}
.main-content[b-yikl53w0im] {
    padding: 1rem; /* หรือค่าอื่น */
}

/* === Responsive Design for MainLayout === */
@media (max-width: 992px) {
    .header-container[b-yikl53w0im] {
        padding: 0 1rem; /* ลด padding ของ header เมื่อหน้าจอเล็ก */
    }
    .mobile-menu-toggle[b-yikl53w0im] {
        display: block; /* แสดงปุ่ม toggle บนหน้าจอเล็ก */
    }
    .main-content[b-yikl53w0im] {
        padding: 1rem; /* คุณมีบรรทัดนี้อยู่แล้ว */
    }
}

@media (max-width: 576px) {
    /* คุณสามารถเพิ่มสไตล์สำหรับ header/footer ที่เล็กมากๆ ได้ที่นี่ */
    .header-container[b-yikl53w0im] {
        padding: 0 1rem; /* หากจำเป็นต้องลด padding อีก */
    }
    .main-content[b-yikl53w0im] {
        padding: 1rem; /* คุณมีบรรทัดนี้อยู่แล้ว */
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* Shared/NavMenu.razor.css */

/* === Navigation Menu === */
.main-nav[b-63xxvwj8dp] {
    display: flex;
    /* แสดงแบบ flex บน Desktop */
    list-style: none;
    align-items: center;
}

.nav-item[b-63xxvwj8dp] {
    position: relative;
    margin: 0 0.5rem;
}

.nav-link[b-63xxvwj8dp] {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: white;
    font-weight: 500;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover[b-63xxvwj8dp],
.nav-link.active[b-63xxvwj8dp] {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link i[b-63xxvwj8dp] {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* === Dropdown Menu === */
.dropdown-menu[b-63xxvwj8dp] {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1100;
    margin-top: 0.5rem;
}

.nav-item:hover .dropdown-menu[b-63xxvwj8dp],
.nav-item.active .dropdown-menu[b-63xxvwj8dp] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item:hover .dropdown-arrow[b-63xxvwj8dp] {
    transform: rotate(180deg);
}

.dropdown-item[b-63xxvwj8dp] {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:first-child[b-63xxvwj8dp] {
    border-radius: 15px 15px 0 0;
}

.dropdown-item:last-child[b-63xxvwj8dp] {
    border-bottom: none;
    border-radius: 0 0 15px 15px;
}

.dropdown-item:hover[b-63xxvwj8dp] {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding-left: 2rem;
}

.dropdown-item i[b-63xxvwj8dp] {
    margin-right: 0.8rem;
    color: var(--primary-color);
    width: 16px;
}

/* === Mobile Menu Overlay/Dropdown === */
@media (max-width: 992px) {
    .main-nav[b-63xxvwj8dp] {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .main-nav.active[b-63xxvwj8dp] {
        display: flex;
    }

    .nav-item[b-63xxvwj8dp] {
        margin: 0.5rem 0;
        width: 100%;
    }

    .nav-link[b-63xxvwj8dp] {
        justify-content: center;
        margin: 0 1rem;
    }

    /* FIX: Changed dropdown-menu background for better visibility on mobile */
    .dropdown-menu[b-63xxvwj8dp] {
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.5); 
        /* opacity: 1; <-- ลบบรรทัดนี้ */
        /* visibility: visible; <-- ลบบรรทัดนี้ */
        transform: none;
        margin-top: 0;
        border-radius: 10px;
        margin: 0.5rem 1rem;
        /* เพิ่มค่าเริ่มต้นสำหรับ Mobile เพื่อให้มันซ่อน */
        max-height: 0; /* ซ่อนด้วยความสูง */
        overflow: hidden; /* ซ่อนเนื้อหาที่เกินมา */
        transition: max-height 0.3s ease-out; /* เพิ่ม transition */
    }

    /* Class ที่จะเพิ่มเมื่อต้องการแสดง dropdown บน Mobile */
    .dropdown-menu.show-mobile[b-63xxvwj8dp] {
        max-height: 500px; /* ค่าความสูงที่มากพอจะแสดงเนื้อหาทั้งหมด */
        /* opacity: 1; /* ถ้าต้องการใช้ opacity/visibility ก็ใช้ตรงนี้ */
        /* visibility: visible; */
    }

    .dropdown-item[b-63xxvwj8dp] {
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-item:hover[b-63xxvwj8dp] {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
}
/* /Pages/Announcement/AnnouncementDetails.razor.rz.scp.css */
/* --- สไตล์ทั่วไปสำหรับหน้าแสดงรายละเอียดข่าวสาร (สามารถใช้จาก Bootstrap ได้) --- */
.container[b-wjwpi6p634] {
    max-width: 960px; /* กำหนดความกว้างสูงสุดของเนื้อหาบน Desktop */
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px; /* เพิ่ม padding ด้านข้าง */
}

/* คุณสามารถปรับแต่ง .card และ .card-body ได้ตามต้องการ */
.card[b-wjwpi6p634] {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-body[b-wjwpi6p634] {
    padding: 30px;
}

.card-title[b-wjwpi6p634] {
    font-size: 2.2em; /* ขนาดใหญ่ขึ้น */
    color: #0056b3; /* สีน้ำเงินเข้ม */
    margin-bottom: 15px;
}

.card-subtitle[b-wjwpi6p634] {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 20px;
}

hr[b-wjwpi6p634] {
    border: none;
    border-top: 1px solid #eee;
    margin-top: 25px;
    margin-bottom: 25px;
}

/* --- สไตล์สำหรับเนื้อหาจาก Summernote (#announcementContent) --- */
#announcementContent[b-wjwpi6p634] {
    line-height: 1.7; /* ระยะห่างบรรทัด */
    font-size: 1.1em; /* ขนาดตัวอักษรเนื้อหา */
    color: #333;
}

#announcementContent p[b-wjwpi6p634] {
    margin-bottom: 1em; /* ระยะห่างระหว่างย่อหน้า */
}

#announcementContent h1[b-wjwpi6p634],
#announcementContent h2[b-wjwpi6p634],
#announcementContent h3[b-wjwpi6p634],
#announcementContent h4[b-wjwpi6p634],
#announcementContent h5[b-wjwpi6p634],
#announcementContent h6[b-wjwpi6p634] {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #212529;
}

#announcementContent ul[b-wjwpi6p634],
#announcementContent ol[b-wjwpi6p634] {
    margin-left: 20px;
    margin-bottom: 1em;
}

#announcementContent a[b-wjwpi6p634] {
    color: #007bff;
    text-decoration: underline;
}

/* สไตล์สำหรับรูปภาพที่แทรกในเนื้อหา (#announcementContent img) */
#announcementContent img[b-wjwpi6p634] {
    max-width: 100%;    /* สำคัญมาก: รูปภาพจะไม่เกินขอบ Container */
    height: auto;       /* รักษาสัดส่วน */
    display: block;     /* ทำให้รูปภาพอยู่คนละบรรทัด */
    margin: 20px auto;  /* จัดให้อยู่กึ่งกลางและมีระยะห่างบนล่าง */
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#announcementContent img:hover[b-wjwpi6p634] {
    transform: scale(1.01);
    transition: transform 0.3s ease;
}

/* --- สไตล์สำหรับพื้นที่แสดงรูปภาพหลัก (.main-image-display-area) --- */
.main-image-display-area[b-wjwpi6p634] {
    width: 100%;
    max-width: 700px; /* กำหนดความกว้างสูงสุดของพื้นที่แสดงรูปภาพหลัก */
    height: auto;
    margin: 20px auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    display: flex; /* ใช้ Flexbox เพื่อจัดกึ่งกลางรูปภาพภายใน */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* ป้องกันรูปภาพเกินขอบถ้ามี border-radius */
    background-color: #fff; /* พื้นหลังสีขาว */
    min-height: 400px; /* กำหนดความสูงขั้นต่ำเพื่อรักษาสัดส่วนพื้นที่ */
}

.main-image-display-area img[b-wjwpi6p634] {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* รักษาสัดส่วนและพอดีกับ Container */
}

.no-main-image-placeholder[b-wjwpi6p634] {
    color: #aaa;
    font-style: italic;
    text-align: center;
    padding: 50px;
}

/* --- สไตล์สำหรับ Thumbnail Gallery (.thumbnail-gallery-area) --- */
.thumbnail-gallery-area[b-wjwpi6p634] {
    display: flex; /* ใช้ Flexbox เพื่อจัดเรียง Thumbnail */
    justify-content: center; /* จัดกึ่งกลาง Thumbnail */
    align-items: center;
    flex-wrap: wrap; /* ให้ขึ้นบรรทัดใหม่ได้ถ้าหน้าจอเล็ก */
    gap: 12px; /* ระยะห่างระหว่าง Thumbnail */
    margin-top: 25px;
    margin-bottom: 30px;
}

.thumbnail-item[b-wjwpi6p634] {
    width: 90px; /* ขนาดของแต่ละ Thumbnail */
    height: 90px;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer; /* แสดงว่าสามารถคลิกได้ */
    transition: all 0.25s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex; /* จัดรูปภาพ Thumbnail ให้อยู่กึ่งกลาง */
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
}

.thumbnail-item img[b-wjwpi6p634] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* รักษาสัดส่วนและพอดีกับกรอบ Thumbnail */
    display: block;
}

.thumbnail-item:hover[b-wjwpi6p634] {
    border-color: #007bff; /* สีขอบเมื่อ hover */
    transform: translateY(-3px); /* เลื่อนขึ้นเล็กน้อย */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.thumbnail-item.active[b-wjwpi6p634] {
    border-color: #007bff; /* สีขอบสำหรับรูปภาพที่เลือกอยู่ */
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.4); /* เรืองแสงรอบขอบ */
    transform: scale(1.08); /* ขยายเล็กน้อยเมื่อ active */
}

/* --- สไตล์สำหรับปุ่มกลับ (.btn) (สามารถใช้จาก Bootstrap ได้ หรือ override) --- */
.btn-secondary[b-wjwpi6p634] {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-secondary:hover[b-wjwpi6p634] {
    background-color: #5a6268;
    border-color: #545b62;
}

/* --- Responsive Adjustments (ปรับแต่งสำหรับมือถือ) --- */
@media (max-width: 767.98px) { /* สำหรับหน้าจอขนาดเล็กกว่า 768px (มือถือและแท็บเล็ตแนวตั้ง) */
    .card-body[b-wjwpi6p634] {
        padding: 20px; /* ลด padding บนมือถือ */
    }

    .card-title[b-wjwpi6p634] {
        font-size: 1.8em; /* ลดขนาดหัวข้อ */
    }

    #announcementContent[b-wjwpi6p634] {
        font-size: 1em; /* ลดขนาดตัวอักษรเนื้อหา */
    }

    #announcementContent img[b-wjwpi6p634] {
        margin: 15px auto; /* ลดระยะห่างบนล่างของรูปภาพในเนื้อหา */
    }

    .main-image-display-area[b-wjwpi6p634] {
        min-height: 280px; /* ลดความสูงขั้นต่ำบนมือถือ */
        margin: 15px auto;
    }

    .thumbnail-gallery-area[b-wjwpi6p634] {
        gap: 8px;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    .thumbnail-item[b-wjwpi6p634] {
        width: 70px; /* เล็กขึ้นบนมือถือ */
        height: 70px;
    }

    .btn[b-wjwpi6p634] {
        width: 100%; /* ทำให้ปุ่มเต็มความกว้างบนมือถือ */
        margin-top: 20px;
    }
}

@media (max-width: 575.98px) { /* สำหรับหน้าจอขนาดเล็กกว่า 576px (มือถือจอเล็ก) */
    .container[b-wjwpi6p634] {
        padding: 0 10px;
    }
}
/* /Pages/Announcement/AnnouncementManagement.razor.rz.scp.css */
/* --- Base Modal Structure --- */
.my-custom-modal[b-eqa40nk6yc] {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Backdrop color */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    display: flex; /* ใช้ flex เพื่อจัดกึ่งกลางเนื้อหา Modal */
    align-items: center; /* จัดกึ่งกลางแนวตั้ง */
    justify-content: center; /* จัดกึ่งกลางแนวนอน */
}

.my-custom-modal.is-visible[b-eqa40nk6yc] {
    opacity: 1;
    visibility: visible;
    /* display: flex;  ไม่ต้อง override ถ้า default เป็น flex อยู่แล้ว */
}

.my-custom-modal-content[b-eqa40nk6yc] { /* ใช้แทน .modal-content */
    position: relative;
    background-color: #fff;
    border-radius: 0.3rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
    width: 90%; /* Default width */
    max-width: 800px; /* Max width for larger screens */
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3.5rem);
    animation: slideIn-b-eqa40nk6yc 0.3s ease-out; /* เพิ่ม animation */
}

@keyframes slideIn-b-eqa40nk6yc {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Modal Responsive */
@media (max-width: 767.98px) {
    .my-custom-modal-content[b-eqa40nk6yc] {
        width: 95%;
        margin: 1rem auto;
        max-height: calc(100vh - 2rem);
    }
}
@media (max-width: 575.98px) {
    .my-custom-modal-content[b-eqa40nk6yc] {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
}

/* --- Modal Sections --- */
.modal-header-custom[b-eqa40nk6yc] { /* Mimic Bootstrap's .modal-header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}
.modal-title-custom[b-eqa40nk6yc] { /* Mimic Bootstrap's .modal-title */
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 500;
}
.btn-close-custom[b-eqa40nk6yc] { /* Mimic Bootstrap's .btn-close */
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    background-color: transparent;
    border: 0;
    opacity: 0.5;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    color: #000;
}
.btn-close-custom:hover[b-eqa40nk6yc] { opacity: 0.75; }

.modal-body-custom[b-eqa40nk6yc] { /* Mimic Bootstrap's .modal-body */
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
    overflow-y: auto;
}

.modal-footer-custom[b-eqa40nk6yc] { /* Mimic Bootstrap's .modal-footer */
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #e9ecef;
    border-bottom-right-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
    gap: 0.5rem;
}

/* --- Form Elements --- */
.mb-custom-3[b-eqa40nk6yc] { /* Mimic Bootstrap's .mb-3 */
    margin-bottom: 1rem;
}
.form-label-custom[b-eqa40nk6yc] { /* Mimic Bootstrap's .form-label */
    display: inline-block;
    margin-bottom: 0.5rem;
}
.form-control-custom[b-eqa40nk6yc] { /* Mimic Bootstrap's .form-control */
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control-custom:focus[b-eqa40nk6yc] {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-custom[b-eqa40nk6yc] { /* Mimic Bootstrap's .form-check */
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}
.form-check-input-custom[b-eqa40nk6yc] { /* Mimic Bootstrap's .form-check-input */
    float: left;
    margin-left: -1.5em;
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.25);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25em;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-check-input-custom:checked[b-eqa40nk6yc] {
    background-color: #0d6efd;
    border-color: #0d6efd;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}
.form-check-label-custom[b-eqa40nk6yc] { /* เพิ่มถ้าต้องการ */
    margin-bottom: 0;
}

.validation-message-custom[b-eqa40nk6yc] {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* --- Buttons --- */
.btn-custom[b-eqa40nk6yc] {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn-primary-custom[b-eqa40nk6yc] { color: #fff; background-color: #0d6efd; border-color: #0d6efd; }
.btn-primary-custom:hover[b-eqa40nk6yc] { color: #fff; background-color: #0b5ed7; border-color: #0a58ca; }
.btn-secondary-custom[b-eqa40nk6yc] { color: #fff; background-color: #6c757d; border-color: #6c757d; }
.btn-secondary-custom:hover[b-eqa40nk6yc] { color: #fff; background-color: #5c636a; border-color: #565e64; }
.btn-danger-custom[b-eqa40nk6yc] { color: #fff; background-color: #dc3545; border-color: #dc3545; }
.btn-danger-custom:hover[b-eqa40nk6yc] { color: #fff; background-color: #bb2d3b; border-color: #b02a37; }
.btn-warning-custom[b-eqa40nk6yc] { color: #000; background-color: #ffc107; border-color: #ffc107; }
.btn-warning-custom:hover[b-eqa40nk6yc] { color: #000; background-color: #ffca2c; border-color: #ffc720; }
.btn-sm-custom[b-eqa40nk6yc] { padding: 0.25rem 0.5rem; font-size: 0.875rem; border-radius: 0.2rem; }


/* --- Image Preview Section --- */
.existing-images-preview-custom[b-eqa40nk6yc] { margin-bottom: 1rem; }
.image-preview-item-custom[b-eqa40nk6yc] {
    border: 1px solid #dee2e6;
    padding: 0.25rem;
    border-radius: 0.25rem;
    display: inline-block;
    position: relative;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}
.img-thumbnail-custom[b-eqa40nk6yc] { /* Mimic Bootstrap's .img-thumbnail */
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.25rem;
}

/* --- Position Utilities --- */
.position-relative-custom[b-eqa40nk6yc] { position: relative; }
.position-absolute-custom[b-eqa40nk6yc] { position: absolute; }
.top-0-custom[b-eqa40nk6yc] { top: 0; }
.end-0-custom[b-eqa40nk6yc] { right: 0; }
.rounded-circle-custom[b-eqa40nk6yc] { border-radius: 50% !important; }
.p-0-custom[b-eqa40nk6yc] { padding: 0 !important; }

/* --- Text & Spacing Utilities --- */
.d-flex-custom[b-eqa40nk6yc] { display: flex; }
.align-items-center-custom[b-eqa40nk6yc] { align-items: center; }
.me-custom-2[b-eqa40nk6yc] { margin-right: 0.5rem; }
.mb-custom-0[b-eqa40nk6yc] { margin-bottom: 0 !important; }
.mt-custom-2[b-eqa40nk6yc] { margin-top: 0.5rem; }
.text-danger-custom[b-eqa40nk6yc] { color: #dc3545 !important; }
.text-center-custom[b-eqa40nk6yc] { text-align: center; }

/* Table specific custom classes */
.modern-table[b-eqa40nk6yc] {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}
.modern-table th[b-eqa40nk6yc], .modern-table td[b-eqa40nk6yc] {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}
.modern-table th[b-eqa40nk6yc] {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    text-align: left;
}
.modern-table tbody tr:hover[b-eqa40nk6yc] {
    background-color: #f2f2f2;
}
.modern-table .actions button[b-eqa40nk6yc] {
    margin-right: 0.25rem;
}
.processing-row[b-eqa40nk6yc] {
    background-color: #e6f7ff !important; /* Light blue for processing row */
    opacity: 0.7;
}
.spinner-border-custom[b-eqa40nk6yc] { /* Mimic Bootstrap spinner */
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: .75s linear infinite spinner-border-b-eqa40nk6yc;
}
@keyframes spinner-border-b-eqa40nk6yc {
  to { transform: rotate(360deg); }
}
.spinner-border-sm-custom[b-eqa40nk6yc] {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}
.text-primary-custom[b-eqa40nk6yc] { color: #0d6efd !important; }
.badge-custom[b-eqa40nk6yc] {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}
.bg-info-custom[b-eqa40nk6yc] { background-color: #0dcaf0 !important; }
.bg-secondary-custom[b-eqa40nk6yc] { background-color: #6c757d !important; }
/* /Pages/awards/AddAward.razor.rz.scp.css */
/* ========================================= */
/* --- Global Reset & Base Styles (Optional but Recommended) --- */
/* ========================================= */
/* If you don't use a CSS reset like Normalize.css or Tailwind's base styles,
   you might want to include some basic resets here for consistency across browsers. */
html[b-lfm2tna0nr] {
    box-sizing: border-box;
}
*[b-lfm2tna0nr], *[b-lfm2tna0nr]::before, *[b-lfm2tna0nr]::after {
    box-sizing: inherit;
}
body[b-lfm2tna0nr] {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* Example font stack */
    line-height: 1.5;
    color: #333; /* Default text color */
    background-color: #f0f2f5; /* Light grey background for the page */
}

/* ========================================= */
/* --- Page Header & Main Container --- */
/* ========================================= */
h3[b-lfm2tna0nr] {
    font-size: 1.75rem; /* ~28px */
    font-weight: 700; /* Bold */
    color: #1a202c; /* Dark text */
    margin-bottom: 2rem; /* Space below header */
    text-align: center; /* Center align page title */
}

.form-main-container[b-lfm2tna0nr] { /* Replaces .bg-white .rounded-xl .shadow-sm .p-6 .mb-8 */
    max-width: 960px; /* Optional: Limit max width for better readability */
    margin: 0 auto 2rem auto; /* Center the form and add bottom margin */
    background-color: #ffffff;
    border-radius: 0.75rem; /* Slightly less rounded than 1rem for a softer feel */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* A bit stronger shadow */
    padding: 2rem; /* Ample padding inside the container */
}

/* ========================================= */
/* --- Form Headings --- */
/* ========================================= */
h2[b-lfm2tna0nr] {
    font-size: 1.875rem; /* ~30px */
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem; /* space below main form title */
    text-align: center; /* Center the form main title */
}

.section-heading[b-lfm2tna0nr] { /* Replaces .text-lg .font-semibold .mb-4 .pb-2 .border-b .border-gray-200 */
    font-size: 1.25rem; /* ~20px */
    font-weight: 600;
    color: #2d3748; /* Slightly lighter than main title */
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0; /* Light grey border */
}

/* ========================================= */
/* --- Form Layout (Grid) --- */
/* ========================================= */
.form-grid[b-lfm2tna0nr] { /* Replaces .grid .grid-cols-1 .gap-6 */
    display: grid;
    grid-template-columns: 1fr; /* Single column by default */
    gap: 1.5rem; /* 24px gap */
}

@media (min-width: 768px) { /* Medium screens and up */
    .form-grid-md-2[b-lfm2tna0nr] { /* Replaces .md:grid-cols-2 */
        grid-template-columns: repeat(2, 1fr); /* Two columns */
    }
}

/* Specific span for full-width elements in grid */
.form-grid .full-span[b-lfm2tna0nr] { /* Replaces .md:col-span-2 */
    grid-column: 1 / -1; /* Spans all columns available */
}

/* ========================================= */
/* --- Form Groups & Controls --- */
/* ========================================= */
.form-group[b-lfm2tna0nr] {
    margin-bottom: 1.5rem; /* Standard vertical spacing for each field group */
}

.form-group label[b-lfm2tna0nr] {
    display: block;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: #4a5568; /* Slightly darker grey for labels */
    margin-bottom: 0.5rem;
}

.required-star[b-lfm2tna0nr] { /* For the red asterisk */
    color: #e53e3e; /* Red-500 */
    margin-left: 0.25rem;
}

.form-control[b-lfm2tna0nr] { /* For InputText, InputSelect, InputDate, InputTextArea */
    display: block;
    width: 100%;
    padding: 0.75rem 1rem; /* Adjust padding for a slightly taller input */
    font-size: 1rem;
    line-height: 1.5;
    color: #2d3748;
    background-color: #f7fafc; /* Light background for inputs */
    border: 1px solid #e2e8f0; /* Light border */
    border-radius: 0.375rem; /* Consistent border radius */
    transition: all 0.2s ease-in-out; /* Smooth transition for focus */
}

.form-control:focus[b-lfm2tna0nr] {
    border-color: #4299e1; /* Blue-400 on focus */
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3); /* Soft blue ring */
    outline: none; /* Remove default outline */
    background-color: #ffffff; /* White background on focus */
}

.form-control[b-lfm2tna0nr]::placeholder {
    color: #a0aec0; /* Lighter grey for placeholder */
}

textarea.form-control[b-lfm2tna0nr] {
    resize: vertical; /* Allow vertical resizing for textareas */
    min-height: 80px; /* Minimum height */
}

/* --- Validation Messages --- */
.validation-message[b-lfm2tna0nr] { /* Blazor's default validation message class */
    color: #e53e3e; /* Red for errors */
    font-size: 0.75rem; /* 12px */
    margin-top: 0.25rem;
}

.validation-summary[b-lfm2tna0nr] { /* Default ValidationSummary class */
    background-color: #fff5f5; /* Light red background */
    border: 1px solid #fed7d7; /* Red border */
    color: #e53e3e; /* Red text */
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}
.validation-summary ul[b-lfm2tna0nr] {
    list-style: none;
    padding: 0;
    margin: 0;
}
.validation-summary li[b-lfm2tna0nr] {
    margin-bottom: 0.25rem;
}

/* ========================================= */
/* --- Radio Buttons & Checkboxes --- */
/* ========================================= */
.radio-group-container[b-lfm2tna0nr] { /* Use this class for the div wrapping radio buttons */
    margin-bottom: 1rem; /* Space below the group */
}

.radio-option-wrapper[b-lfm2tna0nr],
.checkbox-option-wrapper[b-lfm2tna0nr] { /* For the label that wraps InputRadio/Checkbox */
    display: inline-flex; /* Keep options in a line */
    align-items: center; /* Vertically align content */
    cursor: pointer;
    margin-right: 1.5rem; /* Space between options */
}
.radio-option-wrapper:last-child[b-lfm2tna0nr],
.checkbox-option-wrapper:last-child[b-lfm2tna0nr] {
    margin-right: 0; /* No margin on the last item */
}

.form-radio[b-lfm2tna0nr],
.form-checkbox[b-lfm2tna0nr] {
    /* Style the actual input elements */
    flex-shrink: 0; /* Prevent shrinking in flex layouts */
    height: 1.25rem; /* 20px */
    width: 1.25rem; /* 20px */
    border: 1px solid #cbd5e0; /* Grey border */
    background-color: #ffffff;
    cursor: pointer;
    -webkit-appearance: none; /* Remove default browser styles */
    -moz-appearance: none;
    appearance: none;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.form-radio[b-lfm2tna0nr] {
    border-radius: 50%; /* Make it round */
}

.form-checkbox[b-lfm2tna0nr] {
    border-radius: 0.25rem; /* Slightly rounded corners */
}

.form-radio:checked[b-lfm2tna0nr] {
    background-color: #3182ce; /* Blue-600 */
    border-color: #3182ce;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e"); /* White dot */
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.form-checkbox:checked[b-lfm2tna0nr] {
    background-color: #3182ce; /* Blue-600 */
    border-color: #3182ce;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e"); /* White checkmark */
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
}

.radio-label[b-lfm2tna0nr], .checkbox-label[b-lfm2tna0nr] { /* For the <span> next to radio/checkbox */
    margin-left: 0.5rem; /* Space between input and text */
    color: #4a5568;
}

/* ========================================= */
/* --- File Upload Area --- */
/* ========================================= */
.file-upload-wrapper[b-lfm2tna0nr] { /* For the label that wraps InputFile */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 8rem; /* h-32 */
    border: 2px dashed #a0aec0; /* Lighter dashed border */
    border-radius: 0.5rem;
    cursor: pointer;
    background-color: #f7fafc;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.file-upload-wrapper:hover[b-lfm2tna0nr] {
    background-color: #edf2f7; /* Light grey on hover */
    border-color: #718096; /* Darker border on hover */
}

.file-upload-icon[b-lfm2tna0nr] {
    color: #718096; /* Grey icon */
    font-size: 2.5rem; /* Larger icon */
    margin-bottom: 0.5rem;
}

.file-upload-text[b-lfm2tna0nr] {
    font-size: 0.9375rem; /* Slightly larger text for instruction */
    color: #4a5568;
}

.file-upload-text strong[b-lfm2tna0nr] {
    font-weight: 600;
}

.file-upload-hint[b-lfm2tna0nr] {
    font-size: 0.75rem; /* 12px */
    color: #718096;
    margin-top: 0.25rem;
}

/* Existing file preview */
.current-file-preview[b-lfm2tna0nr] {
    margin-top: 0.75rem;
    font-size: 0.875rem; /* 14px */
    color: #4a5568;
}

.img-thumbnail-preview[b-lfm2tna0nr] { /* For the <img> tag */
    max-width: 120px; /* Smaller thumbnail */
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    padding: 0.25rem;
    margin-right: 0.5rem;
    vertical-align: middle; /* Align with text/link */
}

.file-link[b-lfm2tna0nr] { /* For the <a> tag to view file */
    color: #3182ce; /* Blue link */
    text-decoration: none;
    margin-left: 0.5rem;
}
.file-link:hover[b-lfm2tna0nr] {
    text-decoration: underline;
}

.new-file-info[b-lfm2tna0nr] { /* For the p.text-info message */
    font-size: 0.875rem;
    color: #38b2ac; /* Teal-400 for info text */
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ========================================= */
/* --- Buttons --- */
/* ========================================= */
.button-group[b-lfm2tna0nr] { /* For the div wrapping buttons */
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: flex-end; /* Align buttons to the right */
    gap: 0.75rem; /* Space between buttons */
    margin-top: 2rem; /* Space above buttons */
}

.btn[b-lfm2tna0nr] {
    padding: 0.625rem 1.25rem; /* Vertical 10px, Horizontal 20px */
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600; /* Semibold */
    cursor: pointer;
    border: 1px solid transparent; /* Consistent border */
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i[b-lfm2tna0nr] { /* Icon inside button */
    margin-right: 0.5rem; /* Space between icon and text */
}

/* Button Variants */
.btn-secondary[b-lfm2tna0nr] { /* Cancel Button */
    background-color: #edf2f7; /* Gray-200 */
    color: #4a5568; /* Gray-700 */
}
.btn-secondary:hover[b-lfm2tna0nr] {
    background-color: #e2e8f0; /* Gray-300 */
}
.btn-secondary:focus[b-lfm2tna0nr] {
    box-shadow: 0 0 0 3px rgba(160, 174, 192, 0.4); /* Gray focus ring */
    outline: none;
}

.btn-draft[b-lfm2tna0nr] { /* Save Draft Button */
    background-color: #e0f2f7; /* Light blue/cyan */
    color: #2c5282; /* Darker blue */
}
.btn-draft:hover[b-lfm2tna0nr] {
    background-color: #bfdae3; /* Slightly darker */
}
.btn-draft:focus[b-lfm2tna0nr] {
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.4); /* Blue focus ring */
    outline: none;
}

.btn-primary[b-lfm2tna0nr] { /* Save & Publish Button */
    background-color: #3182ce; /* Blue-600 */
    color: #ffffff;
}
.btn-primary:hover[b-lfm2tna0nr] {
    background-color: #2b6cb0; /* Blue-700 */
}
.btn-primary:focus[b-lfm2tna0nr] {
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.4); /* Blue focus ring */
    outline: none;
}

/* ========================================= */
/* --- Utility & Helper Classes --- */
/* ========================================= */
.text-small[b-lfm2tna0nr] { /* For <p class="text-sm text-gray-500 mt-1"> */
    font-size: 0.875rem; /* 14px */
    color: #718096; /* Gray-600 */
    margin-top: 0.25rem;
}

.alert-info[b-lfm2tna0nr] {
    background-color: #ebf8ff; /* Light blue background */
    border: 1px solid #bee3f8; /* Light blue border */
    color: #2c5282; /* Darker blue text */
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.hidden[b-lfm2tna0nr] {
    display: none !important;
}

/* ========================================= */
/* --- Font Awesome (Ensure it's linked in index.html) --- */
/* ========================================= */
/* Example of how to ensure Font Awesome looks good */
.fas[b-lfm2tna0nr], .far[b-lfm2tna0nr] {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900; /* For solid icons */
}
.far[b-lfm2tna0nr] {
    font-weight: 400; /* For regular icons */
}
/* /Pages/awards/AwardsDetail.razor.rz.scp.css */
/* BlazorApp.Client/Pages/AwardsDetail.razor.css */

.award-detail-card[b-c3aw3gsqtl] {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-top: 2rem;
    /* Space from top */
    margin-bottom: 2rem;
}

.award-detail-card h3[b-c3aw3gsqtl] {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.award-detail-card h4[b-c3aw3gsqtl] {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.award-detail-card h5[b-c3aw3gsqtl] {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.award-detail-card hr[b-c3aw3gsqtl] {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-section[b-c3aw3gsqtl] {
    margin-bottom: 1.5rem;
}

.detail-item[b-c3aw3gsqtl] {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: #4b5563;
    /* Text color for details */
}

.detail-item strong[b-c3aw3gsqtl] {
    color: #1f2937;
    /* Stronger color for labels */
    display: inline-block;
    /* Keep strong and value on same line */
    min-width: 8rem;
    /* Give some width to labels for alignment */
    vertical-align: top;
    /* Align to top for multiline content */
}

/* For image previews */
.image-preview[b-c3aw3gsqtl] {
    margin-top: 1rem;
}

.image-preview img[b-c3aw3gsqtl] {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: 0.5rem;
}

/* Buttons */
.btn[b-c3aw3gsqtl] {
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.15s ease-in-out;
}

.btn-secondary[b-c3aw3gsqtl] {
    background-color: #6b7280;
    /* Gray */
    color: #fff;
}

.btn-secondary:hover[b-c3aw3gsqtl] {
    background-color: #4b5563;
    /* Darker gray */
}

/* Flexbox utilities (if not using global Tailwind) */
.flex[b-c3aw3gsqtl] {
    display: flex;
}

.justify-end[b-c3aw3gsqtl] {
    justify-content: flex-end;
}

.mt-4[b-c3aw3gsqtl] {
    margin-top: 1rem;
}

.mt-2[b-c3aw3gsqtl] {
    margin-top: 0.5rem;
}

/* Added for images/files */

/* Responsive adjustments */
@media (max-width: 767px) {

    /* Mobile screens */
    .award-detail-card[b-c3aw3gsqtl] {
        padding: 1.5rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .award-detail-card h3[b-c3aw3gsqtl] {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .award-detail-card h4[b-c3aw3gsqtl] {
        font-size: 1.5rem;
    }

    .award-detail-card h5[b-c3aw3gsqtl] {
        font-size: 1.1rem;
    }

    .detail-item strong[b-c3aw3gsqtl] {
        display: block;
        /* Make label appear on its own line */
        min-width: unset;
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
        /* Smaller label font */
    }
}
/* /Pages/awards/AwardsList.razor.rz.scp.css */
/* BlazorApp.Client/Pages/AwardsList.razor.css */

/* --- Base Styles: General form elements --- */
/* These styles apply by default, acting as mobile-first foundation */
.form-group[b-d5e833a9gl] {
    margin-bottom: 1rem;
    /* Space between form groups */
}

.form-group label[b-d5e833a9gl] {
    display: block;
    /* Make labels take full width */
    margin-bottom: 0.25rem;
    /* Space between label and input */
    font-weight: 500;
    /* Medium font weight for labels */
    color: #374151;
    /* Dark gray for text */
}

.form-control[b-d5e833a9gl] {
    display: block;
    /* Make inputs take full width */
    width: 100%;
    padding: 0.5rem 0.75rem;
    /* Padding inside inputs */
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    /* Input text color */
    background-color: #fff;
    /* Input background */
    background-clip: padding-box;
    border: 1px solid #ced4da;
    /* Input border */
    border-radius: 0.375rem;
    /* Rounded corners */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus[b-d5e833a9gl] {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    /* Blue border on focus */
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    /* Blue shadow on focus */
}

/* Styles for specific button types */
button[b-d5e833a9gl] {
    cursor: pointer;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    /* Default button padding */
    border-radius: 0.375rem;
    /* Default button border-radius */
    transition: background-color 0.15s ease-in-out;
}

.btn-primary[b-d5e833a9gl] {
    background-color: #3b82f6;
    /* Blue */
    color: #fff;
}

.btn-primary:hover[b-d5e833a9gl] {
    background-color: #2563eb;
    /* Darker blue */
}

.btn-danger[b-d5e833a9gl] {
    background-color: #ef4444;
    /* Red */
    color: #fff;
}

.btn-danger:hover[b-d5e833a9gl] {
    background-color: #dc2626;
    /* Darker red */
}

.btn-success[b-d5e833a9gl] {
    background-color: #22c55e;
    /* Green */
    color: #fff;
}

.btn-success:hover[b-d5e833a9gl] {
    background-color: #16a34a;
    /* Darker green */
}

/* --- Container and Layout Styles --- */
.bg-white[b-d5e833a9gl] {
    background-color: #fff;
}

.rounded-xl[b-d5e833a9gl] {
    border-radius: 0.75rem;
}

.shadow-sm[b-d5e833a9gl] {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.p-6[b-d5e833a9gl] {
    padding: 1.5rem;
}

.mb-8[b-d5e833a9gl] {
    margin-bottom: 2rem;
}

/* Styling for the search/filter box */
.bg-gray-50[b-d5e833a9gl] {
    background-color: #f9fafb;
}

.rounded-lg[b-d5e833a9gl] {
    border-radius: 0.5rem;
}

.shadow-inner[b-d5e833a9gl] {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.p-4[b-d5e833a9gl] {
    padding: 1rem;
}

/* Added padding for consistency */

/* --- Utility Classes (similar to Tailwind) --- */
.flex[b-d5e833a9gl] {
    display: flex;
}

.justify-end[b-d5e833a9gl] {
    justify-content: flex-end;
}

.justify-center[b-d5e833a9gl] {
    justify-content: center;
}

.items-center[b-d5e833a9gl] {
    align-items: center;
}

.space-x-2>*:not(:first-child)[b-d5e833a9gl] {
    margin-left: 0.5rem;
}

.mt-4[b-d5e833a9gl] {
    margin-top: 1rem;
}

.mb-4[b-d5e833a9gl] {
    margin-bottom: 1rem;
}

.mb-6[b-d5e833a9gl] {
    margin-bottom: 1.5rem;
}

.py-8[b-d5e833a9gl] {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mr-1[b-d5e833a9gl] {
    margin-right: 0.25rem;
}

.mr-2[b-d5e833a9gl] {
    margin-right: 0.5rem;
}

.mr-3[b-d5e833a9gl] {
    margin-right: 0.75rem;
}

.text-sm[b-d5e833a9gl] {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* Small text */

/* Image/Fallback for table */
.h-10[b-d5e833a9gl] {
    height: 2.5rem;
}

.w-10[b-d5e833a9gl] {
    width: 2.5rem;
}

.rounded-md[b-d5e833a9gl] {
    border-radius: 0.375rem;
}

.object-cover[b-d5e833a9gl] {
    object-fit: cover;
}

.bg-gray-200[b-d5e833a9gl] {
    background-color: #e5e7eb;
}

.text-gray-500[b-d5e833a9gl] {
    color: #6b7280;
}

/* Status badges */
.badge[b-d5e833a9gl] {
    padding: 0.25em 0.5em;
    border-radius: 9999px;
    /* Fully rounded */
    font-size: 0.75rem;
    /* xs */
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.badge.bg-green-100[b-d5e833a9gl] {
    background-color: #d1fae5;
    color: #065f46;
}

/* Approved */
.badge.bg-yellow-100[b-d5e833a9gl] {
    background-color: #fffbeb;
    color: #b45309;
}

/* Pending */
.badge.bg-red-100[b-d5e833a9gl] {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Rejected */
.badge.bg-gray-100[b-d5e833a9gl] {
    background-color: #f3f4f6;
    color: #4b5563;
}

/* Draft/Other */


/* --- Responsive Grid for Search Filters (Mobile-First) --- */
.search-filters-grid[b-d5e833a9gl] {
    display: grid;
    grid-template-columns: 1fr;
    /* Default: Single column for mobile */
    gap: 1rem;
    /* Space between filter items */
}

/* Medium screens and up */
@media (min-width: 768px) {

    /* md breakpoint */
    .search-filters-grid.md\:grid-cols-3[b-d5e833a9gl] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Large screens and up */
@media (min-width: 1024px) {

    /* lg breakpoint */
    .search-filters-grid.lg\:grid-cols-4[b-d5e833a9gl] {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .search-filters-grid .lg\:col-span-4[b-d5e833a9gl] {
        grid-column: span 4 / span 4;
    }
}


/* --- Responsive Table Styles (Mobile-First) --- */

/* Default table styling for larger screens */
table[b-d5e833a9gl] {
    width: 100%;
    border-collapse: collapse;
    /* Ensure borders collapse for clean table */
    display: table;
    /* Standard table display for larger screens */
}

th[b-d5e833a9gl],
td[b-d5e833a9gl] {
    padding: 1rem 1.5rem;
    /* Padding inside table cells */
    text-align: left;
    vertical-align: middle;
    /* Align content vertically */
    border-bottom: 1px solid #e5e7eb;
    /* Light gray border for rows */
}

thead th[b-d5e833a9gl] {
    background-color: #f9fafb;
    /* Light background for table header */
    color: #6b7280;
    /* Darker gray text for header */
    font-size: 0.75rem;
    /* Smaller font for header */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    /* Ensure header text is bold */
}

tbody tr:nth-child(even)[b-d5e833a9gl] {
    background-color: #f9fafb;
    /* Stripe effect for table rows */
}

tbody tr:hover[b-d5e833a9gl] {
    background-color: #f3f4f6;
    /* Highlight on hover */
}

/* Mobile-specific table styles (on screens smaller than 768px) */
@media (max-width: 767px) {
    table[b-d5e833a9gl] {
        border: 0;
        /* Remove outer border for mobile "cards" */
    }

    table thead[b-d5e833a9gl] {
        /* Hide table headers (but not display:none;, which hides from screen readers) */
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    table tr[b-d5e833a9gl] {
        border-bottom: 3px solid #ddd;
        /* Stronger separator between "cards" on mobile */
        display: block;
        /* Make each row act like a block element (a "card") */
        margin-bottom: 1rem;
        /* Space between each row-card */
        background-color: #fff;
        /* Ensure row background is white */
        border-radius: 0.5rem;
        /* Rounded corners for mobile "cards" */
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
        /* Subtle shadow */
        padding: 0.5rem 1rem;
        /* Padding inside each row-card */
    }

    table td[b-d5e833a9gl] {
        border-bottom: 1px solid #eee;
        /* Internal border for cells */
        display: block;
        /* Make each cell act like a block element */
        text-align: right;
        /* Align value to the right */
        font-size: 0.9rem;
        /* Slightly smaller font */
        padding: 0.75rem 0.5rem;
        /* Adjust padding for mobile cells */
        position: relative;
        /* Needed for ::before positioning */
    }

    table td[b-d5e833a9gl]::before {
        /* This will display the "Label" for each column on mobile */
        content: attr(data-label);
        /* Pulls value from data-label attribute in HTML */
        float: left;
        /* Aligns label to the left */
        font-weight: bold;
        /* Bold text for label */
        text-transform: uppercase;
        margin-right: 0.5rem;
        /* Space between label and value */
        color: #6b7280;
        /* Darker gray color for label */
        font-size: 0.75rem;
        /* Same size as original header */
    }

    table td:last-child[b-d5e833a9gl] {
        border-bottom: 0;
        /* No border for the last cell in a row-card */
    }

    /* Adjust specific elements within table cells for mobile, if needed */
    table td .badge[b-d5e833a9gl] {
        float: right;
        /* Align badge to the right */
    }

    table td .flex[b-d5e833a9gl] {
        justify-content: flex-end;
        /* Align action buttons to the right */
    }
}
/* /Pages/Teacher/TeacherCheckin.razor.rz.scp.css */
/* wwwroot/css/app.css หรือ BlazorApp.Client/Pages/TeacherCheckIn.razor.css */

/* Basic table styling (optional, you might already have this) */
.attendance-table[b-2yv82xw2e4] {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background-color: #fff; /* Example background */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Example shadow */
}

.attendance-table th[b-2yv82xw2e4],
.attendance-table td[b-2yv82xw2e4] {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    text-align: left; /* Ensure text alignment */
}

.attendance-table thead th[b-2yv82xw2e4] {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa; /* Example header background */
}

.attendance-table tbody tr:hover[b-2yv82xw2e4] {
    background-color: #f5f5f5; /* Example hover effect */
}

/* Form controls within table cells */
.attendance-table .form-select[b-2yv82xw2e4],
.attendance-table .form-control[b-2yv82xw2e4] {
    width: 100%; /* Make sure selects and inputs take full width */
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}


/* --- Responsive Table Styling --- */
/* Apply these styles only on screens smaller than 768px (common breakpoint for tablets/mobiles) */
@media screen and (max-width: 768px) {
    .attendance-table[b-2yv82xw2e4],
    .attendance-table thead[b-2yv82xw2e4],
    .attendance-table tbody[b-2yv82xw2e4],
    .attendance-table th[b-2yv82xw2e4],
    .attendance-table td[b-2yv82xw2e4],
    .attendance-table tr[b-2yv82xw2e4] {
        display: block; /* Make all table elements behave like blocks */
    }

    /* Hide table headers (but make them available for screen readers) */
    .attendance-table thead tr[b-2yv82xw2e4] {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .attendance-table tr[b-2yv82xw2e4] {
        border: 1px solid #ccc;
        margin-bottom: 0.625rem; /* Space between rows */
        border-radius: 0.25rem; /* Rounded corners for each row */
    }

    .attendance-table td[b-2yv82xw2e4] {
        /* Set up for pseudo-elements to show labels */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%; /* Make space for the label */
        text-align: right; /* Align content to the right */
    }

    .attendance-table td:last-child[b-2yv82xw2e4] {
        border-bottom: none; /* No border for the last cell in a row */
    }

    /* Use pseudo-elements to display the column header as a label */
    .attendance-table td[b-2yv82xw2e4]::before {
        /* Set up for label styling */
        position: absolute;
        left: 0.625rem;
        width: 45%; /* Width for the label */
        padding-right: 0.625rem;
        white-space: nowrap; /* Prevent label from wrapping */
        text-align: left; /* Align label to the left */
        font-weight: bold;
    }

    /* Assign labels to each cell based on their column index */
    .attendance-table td:nth-of-type(1)[b-2yv82xw2e4]::before { content: "ชื่อ-สกุล:"; }
    .attendance-table td:nth-of-type(2)[b-2yv82xw2e4]::before { content: "ระดับชั้น:"; }
    .attendance-table td:nth-of-type(3)[b-2yv82xw2e4]::before { content: "ห้อง:"; }
    .attendance-table td:nth-of-type(4)[b-2yv82xw2e4]::before { content: "สถานะ:"; }
    .attendance-table td:nth-of-type(5)[b-2yv82xw2e4]::before { content: "หมายเหตุ:"; }

    /* Adjust form controls within the cells */
    .attendance-table td .form-select[b-2yv82xw2e4],
    .attendance-table td .form-control[b-2yv82xw2e4] {
        width: calc(100% - 5px); /* Adjust width to fit padding better */
        margin-left: 5px; /* Push it slightly to the right */
    }
}

/* Basic styling for the date/period selection (if not using Bootstrap classes like form-control, row, col-auto) */
.card[b-2yv82xw2e4] {
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f9f9f9;
}

.row[b-2yv82xw2e4] { /* A simple row-like behavior */
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* Space between items */
    align-items: center;
}

.col-auto[b-2yv82xw2e4] { /* Simple column-auto like behavior */
    flex: 0 0 auto;
    width: auto;
}

.col-form-label[b-2yv82xw2e4] {
    margin-bottom: 0;
}

.form-control[b-2yv82xw2e4], .form-select[b-2yv82xw2e4] {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none; /* Remove default styling for selects */
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.form-control:focus[b-2yv82xw2e4], .form-select:focus[b-2yv82xw2e4] {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

.alert[b-2yv82xw2e4] {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger[b-2yv82xw2e4] {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-success[b-2yv82xw2e4] {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.btn[b-2yv82xw2e4] {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.btn-primary[b-2yv82xw2e4] {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover[b-2yv82xw2e4] {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}
