/*
 * Plugin Name:       Tayo-tayo lang Wedding RSVP
 * Description:       A lightweight and simple RSVP plugin for a wedding website.
 * Version:           1.0.0
 * Author:            Your Name
 */

/* Frontend Form Styles */
.tayo-tayo-rsvp-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tayo-tayo-rsvp-form-container h2 {
    text-align: center;
    color: #4a5568;
    margin-bottom: 20px;
}

.tayo-tayo-rsvp-form-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
}

.tayo-tayo-rsvp-form-container input[type="text"],
.tayo-tayo-rsvp-form-container input[type="email"],
.tayo-tayo-rsvp-form-container input[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease-in-out;
}

.tayo-tayo-rsvp-form-container input[type="text"]:focus,
.tayo-tayo-rsvp-form-container input[type="email"]:focus {
    outline: none;
    border-color: #a0aec0;
}

/* Auto-suggest dropdown */
.tayo-tayo-autocomplete-list {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-height: 150px;
    overflow-y: auto;
    margin-top: -15px;
    margin-bottom: 15px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tayo-tayo-autocomplete-list-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #edf2f7;
    transition: background-color 0.2s ease-in-out;
}

.tayo-tayo-autocomplete-list-item:hover {
    background-color: #f7fafc;
}

/* Coming or Not Toggle */
.tayo-tayo-toggle-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.tayo-tayo-toggle-label {
    margin-right: 10px;
    font-weight: 600;
    color: #2d3748;
}

.tayo-tayo-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    background-color: #ef4444; /* No */
    border-radius: 34px;
    transition: background-color 0.4s;
}

.tayo-tayo-toggle-switch:after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.4s;
}

.tayo-tayo-toggle-switch.active {
    background-color: #22c55e; /* Yes */
}

.tayo-tayo-toggle-switch.active:after {
    transform: translateX(26px);
}

.tayo-tayo-coming-status {
    font-weight: bold;
    margin-left: 10px;
    color: #ef4444; /* No */
}

.tayo-tayo-coming-status.active {
    color: #22c55e; /* Yes */
}

.tayo-tayo-no-message,
.tayo-tayo-success-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

.tayo-tayo-no-message {
    background-color: #fbd38d;
    color: #7b341e;
}

.tayo-tayo-success-message {
    background-color: #f5f3e9;
    color: #1a4d2e;
}

/* Submit button */
.tayo-tayo-rsvp-form-container input[type="submit"] {
    background-color: #2d3748;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.tayo-tayo-rsvp-form-container input[type="submit"]:hover {
    background-color: #4a5568;
}

/* QR Code Section */
.tayo-tayo-qr-codes {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.tayo-tayo-qr-codes img {
    max-width: 150px;
    border-radius: 8px;
    margin: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tayo-tayo-qr-codes p {
    font-weight: 600;
    color: #4a5568;
}

.tayo-tayo-form-fields-yes {
    display: none;
    transition: all 0.3s ease-in-out;
}

/* Admin Styles */
.tayo-tayo-admin-container {
    font-family: 'Inter', sans-serif;
}

.tayo-tayo-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.tayo-tayo-admin-table th,
.tayo-tayo-admin-table td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
}

.tayo-tayo-admin-table th {
    background-color: #f7fafc;
    font-weight: bold;
    color: #4a5568;
}

.tayo-tayo-admin-table tbody tr:nth-child(even) {
    background-color: #fefefe;
}

.tayo-tayo-admin-table tbody tr:hover {
    background-color: #f0f4f8;
}

.tayo-tayo-admin-actions a {
    color: #4299e1;
    text-decoration: none;
    margin-right: 10px;
}

.tayo-tayo-admin-actions a:hover {
    text-decoration: underline;
}

.tayo-tayo-admin-import-form,
.tayo-tayo-admin-add-form {
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tayo-tayo-admin-import-form label,
.tayo-tayo-admin-add-form label {
    font-weight: 600;
}

.tayo-tayo-admin-import-form input[type="file"],
.tayo-tayo-admin-add-form input[type="text"] {
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.tayo-tayo-admin-import-form input[type="submit"],
.tayo-tayo-admin-add-form input[type="submit"] {
    background-color: #48bb78;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.tayo-tayo-admin-import-form input[type="submit"]:hover,
.tayo-tayo-admin-add-form input[type="submit"]:hover {
    background-color: #38a169;
}

header, footer, hr {
display:none;    
}
