/* ======= Container & Title ======= */
.form-container,
.form-fullscreen {
    width: 1000px;
    max-width: 100%;
    margin: 50px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
 .hospital-header {
        width: 600px;
        font-family: 'Bubblegum Sans', cursive;
        font-size: 30px;
        font-weight: 900;
        color: rgb(27, 94, 103);
        text-align: center;
        padding: 12px 0;
        letter-spacing: 3px;
        text-transform: uppercase;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        user-select: none;
    }
.form-title,
.form-container h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    gap: 30px;
    color: #334155;
   
}

/* ======= Grid Layout ======= */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.item-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.item-row > * {
    flex: 1;
}

/* ======= Form Elements ======= */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    cursor: pointer;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    width: 100%;
}

.form-group input[type="file"] {
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #475569;
    outline: none;
}

/* ======= Radio Group ======= */
.form-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.form-radio-group input[type="radio"] {
    accent-color: #475569;
}

.form-radio-group label {
    color: #1e293b;
    cursor: pointer;
    margin-right: 20px;
}

/* ======= Buttons ======= */
.submit-btn,
.btn-primary,
.btn-secondary,
.btn-add-item,
.btn-remove-item {
    background-color: #475569;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    text-align: center;
    font-size: 16px;
    /* margin-top: 20px; */
    /* margin-bottom: 30px; */
    
}
/* .btn-primary{
    margin-top:80px;
} */
.submit-btn {
    width: 100%;
    padding: 16px 0;
    font-size: 18px;
}

.submit-btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-add-item:hover {
    background-color: #1e293b;
}

.btn-remove-item {
    background-color: #f43f5e;
}

.btn-remove-item:hover {
    background-color: #be123c;
}

/* ======= Search & Filters ======= */
.search-container {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 250px; 
    background: #f9fafb;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.fixed-search-wrapper {
    position: fixed;
    top: 100px;            
    right: 20px;           
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;        
}

.main-search-form {
    display: flex;
    align-items: center;
}

.main-search-form input[type="text"] {
    padding: 8px 10px;
    border: 1px solid #393E46;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    width: 200px;
    outline: none;
}

.main-search-form button {
    padding: 8px 12px;
    border: 1px solid #393E46;
    border-left: none;
    background-color: #475569;
    color: white;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.main-search-form button:hover {
    background-color: #1e293b;
}


/* ======= Info Hidden Blocks ======= */
#patient-info,
#doctor-info,
#department-info,
#shift-info,
#status-info {
    display: none;
    margin-top: 8px;
    font-weight: 600;
    color: #334155;
}

/* ======= Alert Message ======= */
.alert-success {
    color: green;
    text-align: center;
    margin-bottom: 15px;
}

/* ======= Table Styles ======= */
.table-basic {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-size: 12px;
    margin-top: 20px;
}

.table-basic th,
.table-basic td {
    padding: 6px 8px;
    border: 1px solid #ccc;
    text-align: center;
}

.table-basic thead {
    background-color: #475569;
    color: white;
}

.table-basic tbody tr:nth-child(odd) {
    background-color: #eaeef0;
}

/* ======= Table Action Buttons ======= */
.action-buttons button {
    margin: 0 5px;
    background: none;
    border: none;
    cursor: pointer;
}

/* ======= Details Card/Table ======= */
.details-wrapper {
    padding: 20px;
    background-color: #f8fafc;
}

.details-table {
    width: 100%;
    max-width: 850px;
    margin: 0 auto 40px;
    border-collapse: collapse;
    background-color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
}

.details-table td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
}

.details-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.details-table td:first-child {
    font-weight: 600;
    background-color: #f1f5f9;
    width: 30%;
    white-space: nowrap;
}

/* ======= Photo Styling ======= */
.photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* ======= Responsive ======= */
@media (max-width: 600px) {
    .form-fullscreen,
    .form-container {
        padding: 20px;
        width: 100%;
    }

    .form-title,
    .form-container h2 {
        font-size: 24px;
    }

    .form-grid {
        grid-template-columns: 1fr; /* single column on small screens */
    }

    .submit-btn {
        font-size: 14px;
        padding: 12px 0;
    }

    .photo {
        width: 60px;
        height: 60px;
    }

    .btn-secondary {
        font-size: 13px;
        padding: 8px 18px;
    }
}

.details-container {
    padding: 20px;
    background-color: #f8fafc;
    max-width: 900px;
    margin: 40px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-back {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #475569;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn-back:hover {
    background-color: #1e293b;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}

.details-table td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
}

.details-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.details-table td:first-child {
    font-weight: 600;
    background-color: #f1f5f9;
    width: 30%;
    white-space: nowrap;
}

.photo-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a, .pagination li span {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 4px;
}

.pagination li.active span {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

