* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

.field{
display:flex;
flex-direction:column;
gap:0.375rem;
}


.search-bar{
margin-bottom:1.25rem;
}

.search-bar input{
width:min(100%, 18.75rem);
padding:0.625rem 0.875rem;
font-size:1rem;
border-radius:0.625rem;
border:1px solid #ccc;
}


.field label{
font-size:0.8125rem;
font-weight:600;
color:#374151;
}

.container {
    width: min(100% - 2rem, 112.5rem);
    margin: clamp(1.5rem, 5vw, 2.5rem) auto;
}

h1 {
    font-size: clamp(2.125rem, 7vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.875rem;
}

.card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: clamp(1rem, 3vw, 1.75rem);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.875rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.25rem), 1fr));
    gap: 1rem;
    align-items: stretch;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    min-height: 3.375rem;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 1rem;
    font-size: 1rem;
    background: #fff;
    min-width: 0;
}

.form-grid textarea {
    min-height: 6rem;
    resize: vertical;
}

.form-actions {
    margin-top: 1.125rem;
}

.add-btn {
    background: #0000FF;
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.action-cell{
display:flex;
gap:8px;
align-items:center;
}

.edit-btn{
background:#ffffff;
border:1px solid #3b82f6;
color:#3b82f6;
padding:0.375rem 0.75rem;
border-radius:0.375rem;
font-size:0.8125rem;
cursor:pointer;
}

.edit-btn:hover{
background:#3b82f6;
color:white;
}

.delete-btn{
background:#ef4444;
border:none;
color:white;
padding:0.375rem 0.75rem;
border-radius:0.375rem;
font-size:0.8125rem;
cursor:pointer;
}

.delete-btn:hover{
background:#dc2626;
}

.add-btn:hover {
    background: #dc2626;
}

.table-container {
    background: #ffffff;
    border-radius: 1.5rem;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 40.625rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#schTable {
    width: 100%;
    min-width: 118.75rem;
    border-collapse: collapse;
}

#schTable thead th {
    position: sticky;
    top: 0;
    background: #07162d;
    color: white;
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: left;
    padding: 1.125rem 0.875rem;
    z-index: 2;
    white-space: nowrap;
}

#schTable tbody td {
    padding: 1.125rem 0.875rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    font-size: 0.9375rem;
    line-height: 1.4;
}

#schTable tbody tr:hover {
    background: #f9fafb;
}

.delete-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 0.625rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.delete-btn:hover {
    background: #dc2626;
}

#schTable a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

#schTable a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 1rem, 112.5rem);
    }
}
