body {
    background-color: #f8f9fa;
    color: #333;
    font-family: 'Arial', sans-serif;
}

.card {
    margin-top: 2rem;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #007bff;
    color: #fff;
    border-bottom: none;
    font-size: 1.5rem;
     border-top-left-radius: 0.5rem;
     border-top-right-radius: 0.5rem;
}

.card-body {
    padding: 1.5rem 2rem; /* Adjusted padding */
}

/* --- Session Manager --- */
#sessionManagerSection {
    margin-bottom: 1.5rem; /* Space below session manager */
}
#sessionManagerSection label {
    font-size: 0.9em;
    font-weight: 500;
}
.session-status-indicator {
     font-size: 0.9em;
     padding: 0.4em 0.6em;
     vertical-align: middle;
}


/* --- Buttons --- */
.btn {
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    margin: 5px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.btn i {
    /* Optional: Adjust icon size if needed */
    /* font-size: 1em; */
}

.btn-block { width: 100%; display: flex; }
.btn-primary { background-color: #007bff; border-color: #007bff; color: white; }
.btn-primary:hover { background-color: #0056b3; border-color: #0056b3; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.btn-primary:disabled { background-color: #007bff; border-color: #007bff; opacity: 0.65; cursor: not-allowed;} /* Added cursor */

/* ... (Other button styles remain the same - success, secondary, etc.) ... */
.btn-success { background-color: #28a745; border-color: #28a745; color: white;}
.btn-success:hover { background-color: #218838; border-color: #1e7e34; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.btn-success:disabled { background-color: #28a745; border-color: #28a745; opacity: 0.65; cursor: not-allowed;}
/* ... */
.btn-danger { background-color: #dc3545; border-color: #dc3545; color: white;}
.btn-danger:hover { background-color: #c82333; border-color: #bd2130; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.btn-danger:disabled { background-color: #dc3545; border-color: #dc3545; opacity: 0.65; cursor: not-allowed;}
/* ... */
.btn-warning { background-color: #ffc107; border-color: #ffc107; color: #212529; }
.btn-warning:hover { background-color: #e0a800; border-color: #d39e00; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.btn-warning:disabled { background-color: #ffc107; border-color: #ffc107; opacity: 0.65; cursor: not-allowed;}
/* ... */
.btn-info { background-color: #17a2b8; border-color: #17a2b8; color: white;}
.btn-info:hover { background-color: #138496; border-color: #117a8b; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.btn-info:disabled { background-color: #17a2b8; border-color: #17a2b8; opacity: 0.65; cursor: not-allowed;}
/* ... */
.btn-secondary { background-color: #6c757d; border-color: #6c757d; color: white;}
.btn-secondary:hover { background-color: #5a6268; border-color: #545b62; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.btn-secondary:disabled { background-color: #6c757d; border-color: #6c757d; opacity: 0.65; cursor: not-allowed;}
/* ... */
.btn-outline-secondary { color: #6c757d; border-color: #6c757d; }
.btn-outline-secondary:hover { color: #fff; background-color: #6c757d; border-color: #6c757d; }
.btn-outline-secondary:disabled { color: #6c757d; opacity: 0.65; cursor: not-allowed;}


.btn-sm {
     padding: 0.25rem 0.5rem;
     font-size: 0.8rem;
     border-radius: 0.2rem;
     gap: 0.2rem;
}
.btn-sm i { font-size: 0.9em; }


/* --- Forms & Inputs --- */
.form-control-file {
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    background-color: #fff; /* Ensure background */
}
.form-control:disabled, select:disabled {
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed; /* Indicate disabled state */
}
label {
    font-weight: 500;
    margin-bottom: 0.3rem;
    display: block;
}
select.form-control:disabled {
     color: #6c757d; /* Make text slightly muted */
}

/* --- Recipient Row --- */
.recipient {
    padding: 0.75rem 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 0.3rem;
    background-color: #fff;
    transition: background-color 0.3s;
}
.recipient:nth-child(odd) { background-color: #f8f9fa; }

.recipient .form-control { margin-bottom: 0; }

.recipient-status-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
     min-height: 38px;
}
.recipient-status-container .small {
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    white-space: nowrap; /* Prevent status text wrapping */
}

.recipient-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
/* Make recipient action buttons smaller */
.recipient-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}


/* --- Utilities --- */
.hidden { display: none !important; }
.btn-margin { margin-top: 10px; margin-bottom: 10px; }

/* Adjust flex container for bottom buttons */
.d-flex .btn { flex: 1 1 auto; margin-left: 5px; margin-right: 5px; }
.d-flex .btn:first-child { margin-left: 0; }
.d-flex .btn:last-child { margin-right: 0; }

/* Global Status Area Styling */
.alert-container .alert {
    margin-bottom: 0.5rem; /* Space between multiple alerts */
}

/* --- Modals --- */
.modal .form-control { text-transform: uppercase; }

/* --- Pagination --- */
.pagination { margin-top: 1.5rem; }

/* --- Responsiveness --- */
@media (max-width: 767.98px) {
    /* ... (previous responsive styles) ... */
     .recipient .col-md-2, .recipient .col-md-3, .recipient .col-md-4 {
        margin-bottom: 0.75rem;
    }
    .recipient-buttons { justify-content: space-between; }
    .recipient-status-container { justify-content: flex-start; }
    .d-flex.flex-column.flex-md-row .btn { margin: 5px 0; width: 100%; }
    .card-body { padding: 1rem; }
    #sessionManagerSection .col-md-3, #sessionManagerSection .col-md-4, #sessionManagerSection .col-md-5 {
         margin-bottom: 0.5rem; /* Space between session elements on mobile */
    }
}