body{
 background-color: #ffffff;
 margin: 0px auto;
}
.header {
 background-color: #fcfcfc;
 text-align: center;
 height: 60px;
 padding-top: 1px;
 margin-top: 5px;
}
.container {
 
}
.container .main {
	padding: 10px;
	margin: 10px;
}
.container .main a {
	color: white;
}
.cell_room_0 {
	width: 65px;
	height: 30px;
	float: left;
	text-align: center;
	background-color: red;
	border-width: 3px;
	border-style: solid;
	padding: 3px;
	margin: 3px;
}
.cell_room_1 {
	width: 65px;
	height: 30px;
	float: left;
	text-align: center;
	background-color: green;
	border-width: 3px;
	border-style: solid;
	padding: 3px;
	margin: 3px;
}
.cell_room_2 {
	width: 65px;
	height: 30px;
	float: left;
	text-align: center;
	background-color: white;
	border-width: 3px;
	border-style: solid;
	padding: 3px;
	margin: 3px;
}

.status {
	padding: 3px;
	margin: 3px;
}
.history {
	text-align:center;
}
.field_menu {
	text-align:center;
}
@media (min-width: 320px){
 body,
 .container {
  width: 100%;
     }
}
@media (min-width: 768px){
 body,
 .container {
  width: 750px;
     }
}
@media (min-width: 1200px){
 body,
 .container {
  width: 1000px;
     }
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h2, h3, h4 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 15px;
}

h2 {
    text-align: center;
    color: #0056b3;
}

.status-empty {
    color: #dc3545; /* Red for empty */
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.status-occupied {
    color: #28a745; /* Green for occupied */
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.info-message, .error-message, .success-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.info-message {
    background-color: #e2e6ea;
    color: #6c757d;
    border: 1px solid #dae0e5;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.room-details-form, .action-form, .upload-form {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.form-group {
    display: flex; /* Use flexbox for horizontal alignment */
    align-items: center; /* Vertically align items */
    margin-bottom: 15px;
    padding: 5px 0;
    border-bottom: 1px dotted #eee;
}

.form-group:last-of-type {
    border-bottom: none;
}

.form-group label {
    flex: 0 0 150px; /* Fixed width for labels */
    font-weight: bold;
    font-size: 16px;
    color: #555;
    padding-right: 15px;
}

.form-control {
    flex-grow: 1; /* Take up remaining space */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: auto; /* Allow input to grow */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

textarea.form-control {
    resize: vertical; /* Allow vertical resizing */
    min-height: 80px;
}

.text-capitalize {
    text-transform: capitalize;
}

.form-control-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.checkbox-label {
    font-size: 16px;
    color: #555;
    vertical-align: middle;
}

.form-actions {
    margin-top: 20px;
    text-align: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}
.btn-primary:hover {
    background-color: #0056b3;
}

.btn-warning {
    background-color: #ffc107;
    color: #333;
}
.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}
.btn-info:hover {
    background-color: #138496;
}

.btn-success {
    background-color: #28a745;
    color: white;
}
.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}
.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

.form-control-inline {
    display: inline-block;
    width: 150px;
    margin-left: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-control-file {
    display: block; /* Make it a block element for better spacing */
    margin-bottom: 10px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive grid */
    gap: 15px; /* Space between images */
    margin-top: 20px;
}

.image-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative; /* For positioning the delete button */
}

.image-item img { /* Assuming image.php renders an img tag */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px auto; /* Center image and add space below */
    border-radius: 3px;
}

.image-delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    line-height: 1; /* To ensure 'X' is centered */
    width: 30px;
    height: 30px;
    border-radius: 50%; /* Make it round */
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-history {
    background-color: #6c757d;
    color: white;
    padding: 15px 30px;
    font-size: 20px;
    text-decoration: none;
    display: inline-block; /* Allow padding and margin */
}
.btn-history:hover {
    background-color: #5a6268;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    color: #777;
    font-size: 0.9em;
}