/**
 * Vincent RSVP Plugin Styles
 */

/* Admin Styles */
.rsvp-event-meta-box {
    padding: 10px;
    margin-bottom: 10px;
}

.rsvp-event-meta-box label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.rsvp-event-meta-box input[type="datetime-local"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
}

/* Admin Registrations Table */
.rsvp-registrations-table-container {
    margin-top: 15px;
}

.rsvp-registrations-table-container table {
    border-collapse: collapse;
    width: 100%;
}

.rsvp-registrations-table-container th,
.rsvp-registrations-table-container td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.rsvp-registrations-table-container th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.rsvp-registrations-table-container tr:hover {
    background-color: #f9f9f9;
}

/* Frontend Styles */
.rsvp-event-details {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px 0 25px 0; /* Increased margin to create more space between title and content */
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Subtle shadow for better separation */
    clear: both; /* Ensure it clears any floats */
    width: 100%; /* Full width */
    box-sizing: border-box; /* Include padding in width calculation */
}

.rsvp-event-details-heading {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.rsvp-event-datetime {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.rsvp-event-datetime span {
    margin-right: 20px;
    padding: 5px 10px;
    background-color: #f1f1f1;
    border-radius: 3px;
    font-size: 0.9em;
}

.rsvp-event-datetime i {
    margin-right: 5px;
    color: #555;
}

/* Small text for available spots */
.rsvp-event-spots {
    font-size: 0.8em;
    margin-left: 15px;
    color: #666;
}

/* Shortcode Styles */
.vincent-rsvp-events {
    margin: 20px 0;
}

.vincent-rsvp-event {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.vincent-rsvp-event:last-child {
    border-bottom: none;
}

/* Hierarchical Event Styles */
.vincent-rsvp-events.hierarchical {
    margin-left: 0;
}

.vincent-rsvp-event-children {
    margin-left: 30px;
    margin-top: 20px;
    padding-left: 15px;
    border-left: 2px solid #ddd;
}

.vincent-rsvp-event-children .vincent-rsvp-event {
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.vincent-rsvp-event-children .vincent-rsvp-event:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.vincent-rsvp-event-children .vincent-rsvp-event-title {
    font-size: 1.2em;
}

.vincent-rsvp-event-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.vincent-rsvp-event-title a {
    text-decoration: none;
    color: #333;
}

.vincent-rsvp-event-title a:hover {
    color: #4f4f4f;
}

.vincent-rsvp-event-excerpt {
    margin: 15px 0;
    line-height: 1.5;
}

.vincent-rsvp-event-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.vincent-rsvp-event-link:hover {
    background-color: #005177;
    color: #fff;
}

/* Tab Styles */
.rsvp-tabs {
    margin-top: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.rsvp-tab-container {
    display: flex;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
}

.rsvp-tab-button {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 16px;
    transition: 0.3s;
    font-size: 1em;
    flex: 1;
    text-align: center;
    border-right: 1px solid #ddd;
}

.rsvp-tab-button:last-child {
    border-right: none;
}

.rsvp-tab-button:hover {
    background-color: #ddd;
}

.rsvp-tab-button.active {
    background-color: #4f4f4f;
    color: white;
}

.rsvp-tab-content {
    display: none;
    padding: 20px;
    background-color: #f9f9f9;
}

/* Registration Form Styles */
.rsvp-registration-form-container,
.rsvp-deregistration-form-container {
    padding: 0;
    background-color: transparent;
}

.rsvp-registration-form-container h3,
.rsvp-deregistration-form-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.rsvp-registration-form {
    margin-top: 15px;
}

.rsvp-form-field {
    margin-bottom: 15px;
}

.rsvp-form-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.rsvp-form-field input {
    width: 80%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.rsvp-form-field .required {
    color: #d54e21;
}

.rsvp-form-submit {
    margin-top: 20px;
}

.rsvp-submit-button {
    padding: 10px 15px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.rsvp-submit-button:hover {
    background-color: #005177;
}

.rsvp-error-message {
    padding: 10px;
    margin-bottom: 15px;
    background-color: #f8d7da;
    color: #721c24;
}

.rsvp-success-message {
    padding: 10px;
    margin-bottom: 15px;
    background-color: #d4edda;
    color: #155724;
}

.rsvp-registration-closed {
    padding: 15px;
    margin-top: 20px;
    background-color: #f8d7da;
    color: #721c24;
    text-align: center;
    font-weight: bold;
}

/* Responsive Styles */
@media screen and (max-width: 600px) {
    .rsvp-event-datetime {
        flex-direction: column;
    }
    
    .rsvp-event-datetime span {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .rsvp-event-datetime span:last-child {
        margin-bottom: 0;
    }
    
    .rsvp-registration-form-container {
        padding: 15px;
    }
}


