/* Align "Show entries" to the left and "Search" to the right */
.col-sm-6:last-child {
    text-align: right;
}

/* General Label Styling */
label {
    font-weight: 500;
    color: #4a5568;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Space between text and inputs */
}

/* Input & Select Styling */
.form-control.input-sm {
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #2d3748;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

/* Hover & Focus States */
.form-control.input-sm:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* Specific Widths */
select.input-sm {
    cursor: pointer;
    min-width: 70px;
}

input[type="search"].input-sm {
    width: 200px;
    margin-left: 5px;
}

.btn-glu {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    border-radius: 4px;
    border: 1px solid #1e7145;
    /* Excel-style Gradient */
    background: linear-gradient(to bottom, #217346 0%, #165a35 100%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.btn-glu i {
    margin-right: 8px;
}

.btn-glu:hover {
    background: linear-gradient(to bottom, #1e7145 0%, #104227 100%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border-color: #104227;
    color: white;
}

.btn-glu:active {
    background: #104227;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(1px);
}

.mng-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    border-radius: 4px;
    border: 1px solid #630811; /* Slightly darker than base for border */
    
    /* Excel-style Red Gradient */
    background: linear-gradient(to bottom, #a31220 0%, #880b17 100%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.mng-button i {
    margin-right: 8px;
}

.mng-button:hover {
    /* Darkens the gradient slightly on hover */
    background: linear-gradient(to bottom, #880b17 0%, #630811 100%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border-color: #4d060d;
    color: white;
}

.mng-button:active {
    background: #630811;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(1px);
}

.mng-btn-grp{
    margin-bottom: 10px;
}
.disabled-row {
    pointer-events: none;
    
    opacity: 0.6;
    filter: grayscale(100%);
    cursor: not-allowed; 
    user-select: none;
}

.spinner {
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 3px solid #ccc;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}


/* Management Page */

/* Container & Section */
.management-section {
    padding: 60px 20px;
    background-color: #fcfcfc;
    min-height: 76vh;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* .container {
    max-width: 1100px;
    margin: 0 auto;
} */

/* Header Style */
.management-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 20px;
}

.management-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* The Grid System */
.management-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columns */
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;

}

/* Card Styling */
.admin-card {
    display: flex;
    align-items: center;
    padding: 22px 25px;
    background: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.admin-card i {
    margin-right: 15px;
    color: #880b17; /* Brand color */
    font-size: 18px;
    width: 25px;
    text-align: center;
}

/* Hover States */
.admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #880b17;
    color: #000;
}

/* Wide card logic */
.admin-card.wide {
    grid-column: span 2;
}

/* Footer text */
.management-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.management-footer p {
    font-style: italic;
    font-size: 13px;
    color: #999;
    line-height: 1.6;
}

.manage-user-header{
    display: flex;
    margin-left: auto;
}

.user-list{
    float: right;
    margin-left: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .management-grid {
        grid-template-columns: 1fr;
    }
    .admin-card.wide {
        grid-column: span 1;
    }
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}