body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
.tabs {
    display: flex;
    flex-direction: column;
    background-color: #007BFF;
    padding: 10px;
    width: 200px;
    position: fixed;
    height: 100%;
}
.tab {
    text-align: left;
    padding: 10px;
    color: white;
    cursor: pointer;
}
.tab:hover {
    background-color: #0056b3;
}
.tab.active {
    background-color: #0056b3;
}
.content {
    margin-left: 220px;
    padding: 20px;
}

.patient-list-container {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.patient-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.sync-log-container {
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
}
th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}
th {
    background-color: #007BFF;
    color: white;
    position: sticky;
    top: 0;
}
.appointment-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}
.appointment-button:hover {
    background-color: #218838;
}
.appointments-info {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}
.sync-all-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
}
.sync-all-button:hover {
    background-color: #0056b3;
}
.sync-all-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
.sync-progress {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}
.refresh-button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}
.refresh-button:hover {
    background-color: #5a6268;
}
.status-indicator {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9em;
    margin-top: 10px;
    text-align: center;
}
.status-success {
    background-color: #d4edda;
    color: #155724;
}
.status-error {
    background-color: #f8d7da;
    color: #721c24;
}
.action-button {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}
.action-button:hover {
    background-color: #138496;
}

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

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

.btn-primary {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #0056b3;
}
