body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    color: #2c3e50;
    text-align: center;
}

.hidden {
    display: none;
}

.card {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    background: #fafafa;
}

.event-details {
    background-color: #e8f4fd;
    border-left: 5px solid #3498db;
}

button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

button:hover {
    background-color: #2980b9;
}

.google-btn {
    background-color: #4285F4;
}

.google-btn:hover {
    background-color: #357ae8;
}

.logout-btn {
    background-color: #e74c3c;
    width: auto;
    padding: 8px 15px;
    float: right;
}

.logout-btn:hover {
    background-color: #c0392b;
}

form div {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"],
input[type="number"],
input[type="file"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.registration-preview img {
    max-width: 200px;
    display: block;
    margin: 10px 0;
    border-radius: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.admin-photo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.status-approved {
    color: #27ae60;
    font-weight: bold;
}

.status-pending {
    color: #f39c12;
    font-weight: bold;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    text-transform: uppercase;
    font-weight: bold;
}

.status-badge.pending {
    background-color: #fef9e7;
    color: #f39c12;
    border: 1px solid #f39c12;
}

.status-badge.approved {
    background-color: #eafaf1;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.success-msg {
    color: #27ae60;
    background: #eafaf1;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #27ae60;
}

.info-msg {
    color: #d35400;
    background: #fef5e7;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #f39c12;
}

.approve-btn {
    background-color: #2ecc71;
    width: auto;
    padding: 5px 10px;
    font-size: 14px;
    margin: 0;
}

.approve-btn:hover {
    background-color: #27ae60;
}

.delete-btn {
    background-color: #e74c3c;
    width: auto;
    padding: 5px 10px;
    font-size: 14px;
    margin: 5px 0 0 0;
}

.delete-btn:hover {
    background-color: #c0392b;
}

code {
    background: #eee;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

table td {
    vertical-align: middle;
}

/* Tab Styles */
.tab-btn {
    transition: background-color 0.3s;
}

.tab-btn.active {
    background-color: #3498db !important;
    color: white !important;
}

/* Chat User List */
.user-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-item:hover {
    background-color: #f0f0f0;
}

.user-item:last-child {
    border-bottom: none;
}

.user-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.user-item .user-name {
    font-weight: bold;
    flex-grow: 1;
}

/* Chat Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    width: 95%;
    max-width: 500px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 85vh;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    background-color: #3498db;
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.close-modal {
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #e5ddd5; /* WhatsApp-like background */
}

.message {
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 14px;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.message.sent {
    align-self: flex-end;
    background-color: #dcf8c6;
    color: #333;
}

.message.received {
    align-self: flex-start;
    background-color: #fff;
    color: #333;
}

.message .time {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
    display: block;
    text-align: right;
}

.chat-form {
    display: flex;
    padding: 15px;
    border-top: 1px solid #ddd;
    gap: 10px;
    background-color: #f0f0f0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.chat-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
}

.chat-form button {
    width: auto;
    margin: 0;
    padding: 8px 20px;
    border-radius: 20px;
}
