body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    direction: rtl;
}

.container {
    width: 94%;
    max-width: 900px;
    margin: 20px auto;
}

h1, h2 {
    text-align: center;
}

.card, .rsvp-card {
    background: white;
    padding: 20px;
    margin: 16px auto;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0,0,0,0.12);
}

input {
    width: 100%;
    padding: 14px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
}

button, a {
    display: inline-block;
    padding: 11px 14px;
    margin: 5px;
    border: none;
    border-radius: 10px;
    background: #222;
    color: white;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
}

.main-btn {
    width: 100%;
    font-size: 17px;
    margin-top: 10px;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.delete-btn {
    background: #dc3545;
}

#addMessage {
    font-weight: bold;
    color: #198754;
    text-align: center;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.stats div {
    background: white;
    border-radius: 14px;
    padding: 14px 8px;
    text-align: center;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.stats strong {
    display: block;
    font-size: 24px;
}

.stats span {
    font-size: 14px;
    color: #555;
}

.guests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guest-card {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 14px;
}

.guest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.guest-header h3 {
    margin: 0;
    font-size: 19px;
}

.phone {
    color: #555;
    margin: 8px 0;
}

.status {
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
}

.status.coming {
    background: #d1e7dd;
    color: #0f5132;
}

.status.not_coming {
    background: #f8d7da;
    color: #842029;
}

.guest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rsvp-card {
    max-width: 400px;
    text-align: center;
    margin-top: 80px;
}

.coming {
    background: #198754;
    font-size: 18px;
    width: 140px;
}

.not-coming {
    background: #dc3545;
    font-size: 18px;
    width: 140px;
}

#message {
    font-weight: bold;
    color: #198754;
}

@media (max-width: 600px) {
    .container {
        width: 94%;
        margin: 10px auto;
    }

    h1 {
        font-size: 24px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .guest-actions a,
    .guest-actions button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .guest-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
textarea {
    width: 100%;
    min-height: 130px;
    padding: 14px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    resize: vertical;
    font-family: Arial, sans-serif;
}

.small-text {
    color: #666;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sent-status {
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
}

.sent-status.not_sent {
    background: #e2e3e5;
    color: #41464b;
}

.sent-status.sent {
    background: #cff4fc;
    color: #055160;
}

.sent-btn {
    background: #198754;
    opacity: 0.75;
    cursor: not-allowed;
}

#bulkMessage {
    font-weight: bold;
    color: #198754;
    text-align: center;
}

@media (max-width: 600px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
.current-invitation-box {
    margin-top: 15px;
    text-align: center;
}

.invitation-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 14px;
    border: 1px solid #ddd;
    margin-top: 10px;
}

.invitation-box {
    margin: 15px 0;
    text-align: center;
}

.invitation-box img {
    width: 100%;
    max-width: 360px;
    border-radius: 16px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.12);
}

#invitationMessage {
    font-weight: bold;
    color: #198754;
    text-align: center;
}
.danger-outline-btn {
    background: white;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.guest-count-line {
    color: #333;
    margin: 8px 0;
}

.coming-box {
    margin-top: 18px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 14px;
    border: 1px solid #ddd;
}

.coming-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.coming-box input {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 0 12px rgba(0,0,0,0.12);
}

.login-option {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 12px 0;
    padding: 16px;
    border-radius: 14px;
    background: #222;
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.owner-title {
    text-align: center;
    margin-top: -5px;
    color: #555;
}

.back-link {
    display: block;
    width: fit-content;
    margin: 0 auto 15px auto;
    background: white;
    color: #222;
    border: 1px solid #ddd;
}
.event-login-box {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    background: #fafafa;
}

.event-login-box h2 {
    margin: 0 0 14px;
    font-size: 22px;
    text-align: center;
}

.event-login-box .login-option {
    margin-top: 10px;
}
.login-card input {
    width: 100%;
    padding: 13px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
}

#loginMessage {
    color: #c0392b;
    font-weight: bold;
    margin-top: 12px;
}

#ownerBox h2 {
    margin-bottom: 10px;
    text-align: center;
}
.rsvp-card #publicFormBox {
    margin-top: 18px;
}

.rsvp-card label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: bold;
}

.rsvp-card input {
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
}

.rsvp-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 18px;
}

.invitation-box {
    margin: 16px 0 22px;
    text-align: center;
}

.invitation-box img {
    width: 100%;
    max-width: 430px;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
}