/* Room Boxes Plugin Styles */

.room-boxes-container {
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.room-box-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.room-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    height: 120px;
    min-height: 100px;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0;
    padding: 10px;
}

.room-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.room-box:hover::before {
    left: 100%;
}

.room-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.room-text {
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.room-number {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.room-status {
    font-size: 10px;
    margin-top: 5px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Shortcode Form Styles */
.room-entry-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.room-entry-form-container h3 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.room-entry-form-shortcode {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.form-control {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.submit-button {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background: #005a87;
}

/* Room Data Display Styles */
.room-data-container {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.room-data-container h3 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.room-data-table {
    width: 100%;
    overflow-x: auto;
}

.room-data-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.room-data-table th,
.room-data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.room-data-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.room-data-table tr:hover {
    background: #f8f9fa;
}

/* Message Styles */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.no-data-message {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #ffeaa7;
}

/* Device Info Display Styles */
.device-info-display {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #495057;
    word-break: break-all;
    line-height: 1.4;
}

.device-info-display-admin {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #495057;
    word-break: break-all;
    line-height: 1.3;
    max-width: 400px;
}

/* Admin Interface Styles */
.room-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.room-stats {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.stat-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border-left: 4px solid #0073aa;
}

.stat-box h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #0073aa;
}

/* Legacy support for old class names */
.stat-number.kotor {
    color: #e74c3c;
}

.stat-number.sedia {
    color: #28a745;
}

.stat-number.belum-selesai {
    color: #f1c40f;
}

/* New status classes for updated terminology */
.stat-number.cleaning-needed {
    color: #e74c3c;
}

.stat-number.ready {
    color: #28a745;
}

.stat-number.pending {
    color: #f1c40f;
}

/* New status classes for updated terminology */
.stat-number.cleaning-needed {
    color: #e74c3c;
}

.stat-number.ready {
    color: #28a745;
}

.stat-number.pending {
    color: #f1c40f;
}

.stat-number.to-be-checked {
    color: #e67e22;
}

.stat-number.checked-in {
    color: #6c757d;
}

.stat-number.booked {
    color: #8e44ad;
}

/* Removed selesai status - now using to-be-checked */

.room-preview {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.shortcode-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.shortcode-info code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* Status indicators for admin table */
.status-kotor {
    background: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.status-sedia {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.status-belum-selesai {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* New status indicators for updated terminology */
.status-cleaning-needed {
    background: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.status-ready {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.status-to-be-checked {
    background: #ffeaa7;
    color: #d63031;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.status-checked-in {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.status-booked {
    background: #e8d5f2;
    color: #6a1b9a;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Removed selesai status - now using to-be-checked */

/* Room box status colors */
.room-box.status-kotor {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.room-box.status-sedia {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.room-box.status-belum-selesai {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
}

/* New room box status colors for updated terminology */
.room-box.status-cleaning-needed {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.room-box.status-ready {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.room-box.status-pending {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
}

.room-box.status-to-be-checked {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.room-box.status-checked-in {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.room-box.status-booked {
    background: linear-gradient(135deg, #8e44ad 0%, #6a1b9a 100%);
}

/* Removed selesai status - now using to-be-checked */

/* Legacy status support for existing data */
.room-box.status-masalah {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
}

.room-box.status-semakan {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.room-box.status-semakan .room-status {
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.room-box.status-kotor .room-status,
.room-box.status-belum-selesai .room-status,
.room-box.status-sedia .room-status,
.room-box.status-selesai .room-status {
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* New status text styling for updated terminology */
.room-box.status-cleaning-needed .room-status,
.room-box.status-ready .room-status,
.room-box.status-pending .room-status,
.room-box.status-to-be-checked .room-status,
.room-box.status-checked-in .room-status,
.room-box.status-booked .room-status {
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* Form styles */
.room-entry-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.room-entry-form .form-table th {
    width: 150px;
    padding: 15px 10px 15px 0;
}

.room-entry-form .form-table td {
    padding: 15px 10px;
}

.room-entry-form input[type="text"],
.room-entry-form input[type="number"],
.room-entry-form select {
    width: 100%;
    max-width: 300px;
}

/* Table styles */
.wp-list-table th {
    font-weight: bold;
    background: #f8f9fa;
}

.wp-list-table td {
    vertical-align: middle;
}

/* Responsive design */
@media (max-width: 768px) {
    .room-boxes-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        padding: 15px;
        margin: 10px auto;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .room-box {
        height: 100px !important;
        min-height: 80px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
        padding: 8px;
    }
    
    .room-text {
        font-size: 11px;
        margin-bottom: 3px;
    }
    
    .room-number {
        font-size: 18px;
        line-height: 1.1;
    }
    
    .room-status {
        font-size: 9px;
        margin-top: 3px;
        line-height: 1.2;
    }
    
    .room-dashboard {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .room-data-table {
        font-size: 12px;
        overflow-x: auto;
    }
    
    .room-data-table th,
    .room-data-table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    .passcode-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .form-table th {
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }
}

@media (max-width: 600px) {
    .room-boxes-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        padding: 12px;
        box-sizing: border-box;
    }
    
    .room-box {
        height: 90px !important;
        min-height: 70px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
        padding: 6px;
    }
    
    .room-text {
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    .room-number {
        font-size: 16px;
    }
    
    .room-status {
        font-size: 8px;
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    .room-boxes-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 10px;
        margin: 5px auto;
        box-sizing: border-box;
    }
    
    .room-box {
        height: 85px !important;
        min-height: 65px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
        padding: 5px;
    }
    
    .room-text {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    .room-number {
        font-size: 16px;
        line-height: 1;
    }
    
    .room-status {
        font-size: 8px;
        margin-top: 3px;
        line-height: 1.1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .passcode-stats .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .passcode-verification-container {
        margin: 10px;
        padding: 15px;
    }
    
    .modal-content {
        width: 98%;
        margin: 2% auto;
        padding: 12px;
    }
}

@media (max-width: 360px) {
    .room-boxes-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        padding: 8px;
        box-sizing: border-box;
    }
    
    .room-box {
        height: 80px !important;
        min-height: 60px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
        padding: 4px;
    }
    
    .room-text {
        font-size: 9px;
        margin-bottom: 2px;
    }
    
    .room-number {
        font-size: 14px;
    }
    
    .room-status {
        font-size: 7px;
        margin-top: 2px;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .room-box {
        transition: transform 0.2s ease;
    }
    
    .room-box:active {
        transform: scale(0.95);
    }
    
    .room-box:hover {
        transform: none;
    }
    
    .button {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Alternative color schemes */
.room-boxes-container.theme-dark {
    background: #2c3e50;
}

.room-boxes-container.theme-dark .room-box {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

.room-boxes-container.theme-light .room-box {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.room-boxes-container.theme-warm .room-box {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

.room-boxes-container.theme-nature .room-box {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
} 

/* Passcode Management Styles */
.passcode-verification-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.passcode-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.passcode-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.passcode-form label {
    font-weight: 600;
    color: #333;
}

.passcode-form input[type="password"],
.passcode-form input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.passcode-result {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.passcode-result .success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.passcode-result .error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Passcode Statistics */
.passcode-stats {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.passcode-stats h2 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.passcode-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.passcode-stats .stat-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border-left: 4px solid #0073aa;
}

.passcode-stats .stat-box h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

.passcode-stats .stat-number {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.passcode-stats .stat-number.admin {
    color: #dc3545;
}

.passcode-stats .stat-number.manager {
    color: #fd7e14;
}

.passcode-stats .stat-number.staff {
    color: #20c997;
}

.passcode-stats .stat-number.cleaner {
    color: #6f42c1;
}

.passcode-stats .stat-number.inspector {
    color: #17a2b8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.passcode-display {
    font-family: monospace;
    margin-right: 10px;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Admin Form Styles */
.room-entry-form,
.passcode-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.form-table th {
    width: 150px;
    padding: 15px 10px 15px 0;
    vertical-align: top;
    font-weight: 600;
}

.form-table td {
    padding: 15px 10px;
}

.form-table input[type="text"],
.form-table input[type="password"],
.form-table select,
.form-table textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-table textarea {
    min-height: 80px;
    resize: vertical;
}

.description {
    color: #666;
    font-style: italic;
    margin-top: 5px;
    font-size: 13px;
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 8px 16px;
    margin: 2px;
    text-decoration: none;
    border: 1px solid #0073aa;
    border-radius: 4px;
    background: #0073aa;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.button:hover {
    background: #005a87;
    border-color: #005a87;
}

.button-primary {
    background: #0073aa;
    border-color: #0073aa;
}

.button-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

.button-small {
    padding: 4px 8px;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .passcode-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .form-table th {
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .passcode-stats .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .passcode-verification-container {
        margin: 10px;
        padding: 15px;
    }
} 

.room-box .room-text,
.room-box .room-number {
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
} 

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Ensure room boxes are properly centered */
    .room-boxes-container {
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* Improve touch targets */
    .room-box-link {
        display: block;
        width: 100%;
        height: 100%;
    }
    
    /* Better spacing for small screens */
    .room-entry-form-container,
    .room-data-container,
    .passcode-verification-container {
        margin: 10px;
        padding: 15px;
    }
    
    /* Improve table readability on mobile */
    .room-data-table {
        border: 1px solid #ddd;
    }
    
    .room-data-table th {
        background: #f5f5f5;
        font-weight: bold;
        position: sticky;
        top: 0;
        z-index: 10;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    .room-boxes-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
        padding: 6px;
        box-sizing: border-box;
    }
    
    .room-box {
        height: 75px !important;
        min-height: 55px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
        padding: 3px;
    }
    
    .room-text {
        font-size: 8px;
        margin-bottom: 2px;
    }
    
    .room-number {
        font-size: 13px;
    }
    
    .room-status {
        font-size: 6px;
        margin-top: 2px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .room-boxes-container {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 8px !important;
        padding: 10px;
        box-sizing: border-box;
    }
    
    .room-box {
        height: 70px !important;
        min-height: 50px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
        padding: 5px;
    }
    
    .room-text {
        font-size: 8px;
        margin-bottom: 2px;
    }
    
    .room-number {
        font-size: 12px;
    }
    
    .room-status {
        font-size: 6px;
        margin-top: 2px;
    }
}

/* Ensure modals work well on mobile */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        margin: 0 auto;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* Improve numpad on mobile */
    .numpad {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin: 15px 0;
    }
    
    .numpad-key {
        background-color: #046AD2 !important;
        min-height: 50px;
        font-size: 18px;
        border-radius: 8px;
    }
    
    .numpad-key.clear,
    .numpad-key.enter {
        grid-column: span 1;
    }
    
    .numpad-key.zero {
        grid-column: span 1;
    }
} 

/* Passcode Modal and Numpad Styles */
.disemak-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.disemak-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.disemak-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.disemak-close:hover,
.disemak-close:focus {
    color: #333;
    text-decoration: none;
}

.disemak-modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* Passcode Input Field */
.disemak-modal-content input[type="password"] {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    text-align: center;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #f8f9fa;
    color: #333;
    font-family: 'Courier New', monospace;
    letter-spacing: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.disemak-modal-content input[type="password"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Numpad Grid */
.disemak-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

/* Numpad Keys */
.numpad-key {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.numpad-key:hover {
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.numpad-key:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Special numpad keys */
.numpad-key#numpad-del {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    font-size: 14px;
}

.numpad-key#numpad-del:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
}

/* Submit Button */
.disemak-submit-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.disemak-submit-btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.disemak-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Error Messages */
#disemak-passcode-error,
#checkout-passcode-error,
#room-status-passcode-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

/* Success Messages */
#disemak-success-message,
#checkout-success-message,
#room-status-success-message {
    color: #28a745;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}

/* Modal Success State */
#disemak-success-modal .disemak-modal-content,
#checkout-success-modal .disemak-modal-content,
#room-status-success-modal .disemak-modal-content {
    text-align: center;
}

#disemak-success-modal h3,
#checkout-success-modal h3,
#room-status-success-modal h3 {
    color: #28a745;
}

/* Responsive Design for Passcode Modal */
@media (max-width: 768px) {
    .disemak-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
        max-width: 350px;
    }
    
    .disemak-modal-content h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .disemak-modal-content input[type="password"] {
        font-size: 20px;
        padding: 12px;
        margin-bottom: 15px;
        letter-spacing: 6px;
    }
    
    .disemak-numpad {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .numpad-key {
        padding: 12px;
        font-size: 16px;
        min-height: 45px;
    }
    
    .disemak-submit-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .disemak-modal-content {
        margin: 5% auto;
        padding: 15px;
        width: 98%;
        max-width: 300px;
    }
    
    .disemak-modal-content h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .disemak-modal-content input[type="password"] {
        font-size: 18px;
        padding: 10px;
        margin-bottom: 12px;
        letter-spacing: 4px;
    }
    
    .disemak-numpad {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .numpad-key {
        padding: 10px;
        font-size: 14px;
        min-height: 40px;
    }
    
    .disemak-submit-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .numpad-key {
        min-height: 50px;
        padding: 15px;
    }
    
    .disemak-submit-btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .disemak-modal-content input[type="password"] {
        min-height: 44px;
        font-size: 18px;
    }
}

/* Loading state for buttons */
.disemak-submit-btn:disabled,
.numpad-key:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Focus styles for accessibility */
.numpad-key:focus,
.disemak-submit-btn:focus,
.disemak-close:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Animation for passcode input */
.disemak-modal-content input[type="password"] {
    animation: passcodePulse 0.5s ease-in-out;
}

@keyframes passcodePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
} 