/* ============================================
   Community Core V2 — Activities Module CSS
   ============================================ */

.ccv2-calendar-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.ccv2-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ccv2-calendar-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.ccv2-cal-prev,
.ccv2-cal-next {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
}

.ccv2-cal-prev:hover,
.ccv2-cal-next:hover {
    background: #333;
}

.ccv2-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ccv2-calendar th,
.ccv2-calendar td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    vertical-align: top;
    height: 100px;
    position: relative;
}

.ccv2-calendar th {
    background: #000;
    color: #fff;
    text-align: center;
    height: auto;
    font-weight: 600;
}

.ccv2-cal-day-number {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ccv2-cal-today {
    background: #f0f0f0;
}

.ccv2-cal-has-events {
    background: #fafafa;
}

.ccv2-cal-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.ccv2-cal-event {
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccv2-cal-published {
    background: #000;
}

.ccv2-cal-pending {
    background: #888;
}

.ccv2-cal-add {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #000;
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: none;
}

.ccv2-cal-day:hover .ccv2-cal-add {
    display: block;
}

.ccv2-cal-empty {
    background: #f9f9f9;
}

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

.ccv2-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 2rem;
    max-width: 700px;
    position: relative;
    border-radius: 4px;
}

.ccv2-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Forma */
.ccv2-form-field {
    margin-bottom: 1rem;
}

.ccv2-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ccv2-form-row {
    display: flex;
    gap: 1rem;
}

.ccv2-form-row .ccv2-form-field {
    flex: 1;
}

.ccv2-form-field input[type="text"],
.ccv2-form-field input[type="date"],
.ccv2-form-field input[type="time"],
.ccv2-form-field input[type="number"],
.ccv2-form-field select,
.ccv2-form-field textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.ccv2-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.ccv2-btn-submit,
.ccv2-btn-cancel {
    padding: 0.6rem 1.2rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.ccv2-btn-submit {
    background: #000;
    color: #fff;
}

.ccv2-btn-cancel {
    background: #eee;
    color: #000;
}

.ccv2-btn-submit:hover {
    background: #333;
}

.ccv2-extra-date-row,
.ccv2-guest-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.25rem;
}

.ccv2-remove-date,
.ccv2-remove-guest {
    background: #c00;
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.ccv2-form-message {
    margin-top: 0.5rem;
}

.ccv2-success { color: #080; }
.ccv2-error   { color: #c00; }

/* Single aktivnost */
.ccv2-activity-single {
    max-width: 800px;
    margin: 0 auto;
}

.ccv2-activity-single-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ccv2-activity-back {
    text-decoration: none;
    color: #000;
    font-weight: 600;
}

.ccv2-activity-status-pending {
    background: #f90;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.ccv2-activity-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f5f5f5;
}

.ccv2-activity-description {
    margin-bottom: 1rem;
}

.ccv2-activity-rsvp {
    margin-bottom: 1rem;
}

.ccv2-rsvp-btn {
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.ccv2-rsvp-register {
    background: #000;
    color: #fff;
}

.ccv2-rsvp-unregister {
    background: #eee;
    color: #000;
}

.ccv2-activity-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.ccv2-activity-actions a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #fff;
    background: #000;
}

.ccv2-activity-approve { background: #080 !important; }
.ccv2-activity-reject  { background: #c00 !important; }
.ccv2-activity-delete  { background: #333 !important; }

.ccv2-activity-responsible ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.ccv2-activity-responsible li {
    margin-bottom: 0.25rem;
}

.ccv2-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Pending list */
.ccv2-pending-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.ccv2-pending-table th,
.ccv2-pending-table td {
    border: 1px solid #ddd;
    padding: 0.6rem;
    text-align: left;
}

.ccv2-pending-table th {
    background: #000;
    color: #fff;
}

.ccv2-pending-table tr:nth-child(even) {
    background: #f9f9f9;
}

.ccv2-pending-table a {
    color: #000;
    text-decoration: underline;
}

.ccv2-pending-table button {
    padding: 0.3rem 0.6rem;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 0.25rem;
}

.ccv2-approve-btn { background: #000; color: #fff; }
.ccv2-reject-btn  { background: #c00; color: #fff; }
.ccv2-delete-btn  { background: #333; color: #fff; }
