*, *:before, *:after {
    box-sizing: border-box;
}

body {
    background: #ededed;
    font-family: 'Roboto', sans-serif;
    overflow-y: scroll;
}

header {
    padding: 25px;
    text-align: left;
    max-width: 700px;
    box-sizing: border-box;
    margin: auto;
	position: relative;
    display: flex;
    align-items: center;
}

header img {
    height: 50px;
    width: 50px;
    background-color: white;
    border-radius: 0 12px;
}

header span {
    font-size: 24px;
    margin-left: 16px;
    font-weight: bold;
    color: #003A75;
}

header .version {
	font-size: 14px;
}

.warehouse-selector {
    max-width: 700px;
    margin: 0 auto 20px;
    padding: 0 15px;
}

.warehouse-selector select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
}

.staff-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.staff-section {
    margin-bottom: 30px;
}

.staff-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #003A75;
    font-weight: 500;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.staff-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.staff-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.status-in {
    background-color: #4CAF50; 
}

.status-out {
    background-color: #F44336;
}

.status-break {
    background-color: #FF9800;
}

.status-nonprod {
    background-color: #2196F3;
}

@media (min-width: 768px) {
    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .staff-button {
        height: 120px;
        font-size: 20px;
    }
}

@media (min-width: 992px) {
    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    width: 95%;
    max-width: 700px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-header {
    padding: 20px 25px;
    background-color: #003A75;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
}

.close-modal {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
}

.close-modal:hover {
    color: #ccc;
}

.modal-body {
    padding: 25px;
    line-height: 1.6;
    font-size: 16px;
}

.modal-footer {
    padding: 20px 25px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    transition: background-color 0.2s;
    min-width: 100px;
    margin: 0 5px;
    height: 120px;
    width: 220px;
    box-sizing: border-box;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #3e8e41;
}

.btn-warning {
    background-color: #FF9800;
    color: white;
}

.btn-warning:hover {
    background-color: #e68a00;
}

.btn-info {
    background-color: #2196F3;
    color: white;
}

.btn-info:hover {
    background-color: #1976D2;
}

.btn-danger {
    background-color: #F44336;
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.btn-default {
    background-color: #e7e7e7;
    color: #333;
}

.btn-default:hover {
    background-color: #d7d7d7;
}