* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
}

.login-form h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.login-btn {
    width: 100%;
    background-color: #667eea;
    color: white;
}

.login-btn:hover {
    background-color: #5a6fd8;
}

.logout-btn {
    background-color: #dc3545;
    color: white;
}

.logout-btn:hover {
    background-color: #c82333;
}

/* Admin Panel Styles */
.admin-container {
    background: white;
    min-height: 100vh;
}

.admin-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-main {
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.current-status, .status-controls {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #007bff;
}

.current-status h2, .status-controls h2 {
    color: #333;
    margin-bottom: 20px;
}

.status-display {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.google-link-section {
    margin-bottom: 25px;
}

.google-link-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.link-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 8px;
}

.link-input:focus {
    outline: none;
    border-color: #667eea;
}

.google-link-section small {
    color: #666;
    font-style: italic;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn.available {
    background-color: #28a745;
    color: white;
}

.btn.available:hover {
    background-color: #218838;
}

.btn.busy {
    background-color: #ffc107;
    color: black;
}

.btn.busy:hover {
    background-color: #e0a800;
}

.btn.offline {
    background-color: #dc3545;
    color: white;
}

.btn.offline:hover {
    background-color: #c82333;
}

.btn.cancel {
    background-color: #6c757d;
    color: white;
}

.btn.cancel:hover {
    background-color: #545b62;
}

/* 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.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #333;
}

.modal h3 {
    margin-bottom: 15px;
    color: #333;
}

#offlineUntil {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    margin-bottom: 15px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Message Styles */
.message {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .admin-main {
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}