/* Add to your existing style.css */

/* Styles for the home page when no patient is selected */
.content.full-width {
    flex-grow: 1;
    width: 100%; /* Take full width if sidebar is hidden */
    max-width: 900px; /* Limit content width for better readability */
    margin: 0 auto; /* Center the content */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add shadow back to content area */
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* Styles for the new home page elements - these are also in home.php for quick testing */
.home-options {
    margin-bottom: 30px;
    text-align: center;
}

.btn-action {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 5px;
    cursor: pointer;
}

.btn-create-new {
    background-color: #28a745; /* Green */
    color: white;
    border: 1px solid #28a745;
}

.btn-create-new:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.btn-edit {
    background-color: #007bff; /* Blue */
    color: white;
    border: 1px solid #007bff;
    padding: 8px 15px; /* Smaller for table */
    font-size: 0.9em;
}

.btn-edit:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.patient-list-container {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.patient-list-container h3 {
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.patient-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.patient-list-table th,
.patient-list-table td {
    border: 1px solid #e0e0e0;
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

.patient-list-table th {
    background-color: #f0f0f0;
    font-weight: bold;
    white-space: nowrap;
}

.patient-list-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.patient-list-table tbody tr:hover {
    background-color: #f2f2f2;
}

/* Responsive adjustments for table */
@media (max-width: 768px) {
    .patient-list-table, .patient-list-table tbody, .patient-list-table tr, .patient-list-table td {
        display: block;
        width: 100%;
    }
    .patient-list-table thead {
        display: none; /* Hide table headers on small screens */
    }
    .patient-list-table tr {
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    .patient-list-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border: none;
        border-bottom: 1px dashed #e0e0e0;
    }
    .patient-list-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #555;
    }
    .patient-list-table td:last-child {
        border-bottom: none;
        text-align: center;
    }
}

/* Existing form message styles (ensure these are present in style.css) */
.form-message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
}
.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.form-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}