.gar-container {
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
}

.gar-container h2 {
    margin: 0 0 12px 0;
    color: #333;
    border-bottom: 1px solid #0073aa;
    padding-bottom: 10px;
}

.gar-container h3 {
    color: #555;
    margin-top: 0;
}

.gar-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.gar-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gar-control-group label {
    font-weight: 600;
    color: #555;
}

.gar-event-date {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.gar-csv-import {
    font-size: 14px;
}

.gar-import-btn,
.gar-add-attendees-btn,
.gar-add-row-btn,
.gar-save-btn,
.gar-show-full-btn,
.gar-download-btn,
.gar-clear-attendance-btn,
.gar-apply-date-btn,
.gar-email-btn {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    width: 300px;
}

.gar-save-btn {background: #228B22;}

.gar-import-btn:hover,
.gar-add-attendees-btn:hover,
.gar-add-row-btn:hover,
.gar-show-full-btn:hover,
.gar-download-btn:hover,
.gar-clear-attendance-btn:hover,
.gar-apply-date-btn:hover,
.gar-email-btn:hover {
    background: #005a87;
}

.gar-save-btn:hover {background: #4CBB17;}

.gar-apply-date-btn {
    background: #ff9800;
}

.gar-apply-date-btn:hover {
    background: #e68900;
}

.gar-clear-attendance-btn {
    background: #dc3545;
}

.gar-clear-attendance-btn:hover {
    background: #c82333;
}

.emailsent {color: #228B22;padding: 6px;}

.gar-messages {
    margin: 6px 0;
    min-height: 20px;
}

.gar-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.gar-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.gar-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.gar-attendance-section {
    margin-bottom: 12px;
}

.gar-attendees-list {
    margin-top: 15px;
}

.gar-import-section {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
    border: 2px dashed #0073aa;
}

.gar-import-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gar-import-wrapper label {
    font-weight: 600;
    color: #555;
}

.gar-import-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.gar-attendee-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    max-width: 350px;
}

.gar-attendee-row input[type="text"], .gar-full-register-controls input[type="email"] {
    border-radius: 4px;
    padding: 6px;
    border: 1px solid #333;
    font-size: 14px;
    width:300px;
}

.gar-attendee-name:focus {
    outline: none;
    border-color: #0073aa;
}


.gar-add-more {
    margin-top: 15px;
}

.gar-total {
    margin-top: 12px;
    padding: 15px;
    background: #e7f3ff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #0073aa;
}

.gar-total-count {
    color: #005a87;
    font-size: 18px;
}

.gar-actions {
    margin-top: 12px;
}

.gar-save-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
}

.gar-full-register-section {
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.gar-full-register-controls {
    margin: 15px 0;
    display: flex;
    gap: 10px;
}

.gar-table-wrapper {
    overflow-x: auto;
    margin-top: 15px;
}

.gar-full-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.gar-full-table th,
.gar-full-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.gar-full-table th {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.gar-full-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.gar-full-table tbody tr:hover {
    background: #f0f0f0;
}

.gar-cell-yes {
    color: #28a745;
    font-weight: 600;
    text-align: center;
}

.gar-cell-no {
    color: #ccc;
    text-align: center;
}

.gar-total-cell {
    font-weight: 600;
    background: #e7f3ff;
    text-align: center;
}

.gar-totals-row {
    background: #e7f3ff !important;
}

.gar-totals-row td {
    font-weight: 600;
    text-align: center;
}

/* Loading state */
.gar-loading {
    opacity: 0.6;
    pointer-events: none;
}


.squared-check {margin-left:auto;}

/* Hide native checkbox */
.squared-check input {
  display: none;
}

/* Checkbox container */
.squared-check span {
  width: 30px;
  height: 30px;
  border: 1px solid #333;
  border-radius: 4px;
  display: inline-block;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s ease;
	margin-top: 4px;
}

/* Checked state: filled with inner white outline */
.squared-check input:checked + span {
  background-color: #333;
  box-shadow: inset 0 0 0 4px #fff;
}

/* Hover / focus */
.squared-check span:hover {
  border-color: #000;
}

.squared-check input:focus + span {
  outline: 3px solid rgba(0, 0, 0, 0.2);
  outline-offset: 2px;
}


/* Responsive */
@media (max-width: 768px) {
    
    .gar-import-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gar-full-register-controls {
        flex-direction: column;
    }
}
