/**
 * KPPIT Attendance Public Styles
 */

/* General */
.kppit-notice {
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    margin: 15px 0;
}

.kppit-notice.kppit-error {
    border-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.kppit-notice.kppit-success {
    border-color: #28a745;
    background: #d4edda;
    color: #155724;
}

/* My QR Code */
.kppit-my-qr {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.kppit-qr-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.kppit-qr-card .qr-image {
    margin-bottom: 20px;
}

.kppit-qr-card .qr-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.kppit-qr-card .member-info h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #333;
}

.kppit-qr-card .member-no {
    font-size: 16px;
    color: #666;
    margin: 5px 0;
}

.kppit-qr-card .qr-code-text {
    font-family: monospace;
    font-size: 14px;
    color: #999;
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-block;
}

.kppit-qr-instruction {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/* Attendance History */
.kppit-my-attendance {
    max-width: 800px;
}

.kppit-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.kppit-table th,
.kppit-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.kppit-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.kppit-table tr:hover {
    background: #f8f9fa;
}

/* Upcoming Events */
.kppit-upcoming-events h3 {
    margin-bottom: 20px;
}

.kppit-events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kppit-event-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.2s;
}

.kppit-event-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.kppit-event-card .event-date {
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kppit-event-card .event-date .day {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.kppit-event-card .event-date .month {
    font-size: 14px;
    text-transform: uppercase;
}

.kppit-event-card .event-info h4 {
    margin: 0 0 8px;
    font-size: 18px;
}

.kppit-event-card .event-meta {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.kppit-event-card .event-meta span {
    margin-right: 15px;
}

.kppit-event-card .rsvp-badge {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 3px;
    margin-top: 8px;
}

/* RSVP Form */
.kppit-rsvp-form {
    max-width: 500px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 25px;
}

.kppit-event-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.kppit-event-header h3 {
    margin: 0 0 10px;
}

.kppit-event-header .event-meta {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.kppit-event-header .event-meta span {
    margin-right: 15px;
}

.rsvp-capacity {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.rsvp-capacity .full-badge {
    background: #dc3545;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 10px;
}

.current-rsvp {
    background: #d4edda;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.rsvp-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.kppit-btn {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.kppit-btn:hover {
    background: #f5f5f5;
}

.kppit-btn-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.kppit-btn-primary:hover {
    background: #135e96;
}

.kppit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rsvp-message {
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.rsvp-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.rsvp-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

.rsvp-deadline {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 600px) {
    .kppit-event-card {
        flex-direction: column;
    }

    .kppit-event-card .event-date {
        width: 100%;
        height: auto;
        flex-direction: row;
        gap: 10px;
        padding: 10px;
    }

    .rsvp-buttons {
        flex-direction: column;
    }

    .kppit-table th,
    .kppit-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
}
