/* F2F Presentation Booking Plugin Styles */

/*===================================
 * COMMON STYLES & UTILITIES
 *===================================*/
/* Notification Styles */
.f2f-success,
.f2f-error,
.f2f-warning,
.f2f-info {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-weight: 600;
}

.f2f-success {
    background-color: #dff0d8;
    color: #3c763d;
}

.f2f-error {
    background-color: #f2dede;
    color: #a94442;
}

.f2f-warning {
    background-color: #fcf8e3;
    color: #8a6d3b;
}

.f2f-info {
    background-color: #e9f7ff;
    color: #0073aa;
}

.f2f-notice {
    background-color: #f8f8f8;
    border-left: 4px solid #0073aa;
    padding: 12px;
    margin-top: 20px;
    font-size: 14px;
}

.f2f-help-text {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0 0;
}

.f2f-validation-error {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

.f2f-field-error {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Button Styles */
.f2f-submit-btn,
.f2f-cancel-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.f2f-submit-btn {
    background-color: #0073aa;
    color: white;
}

.f2f-submit-btn:hover {
    background-color: #005177;
}

.f2f-cancel-btn {
    background-color: #e74c3c;
    color: white;
}

.f2f-cancel-btn:hover {
    background-color: #c0392b;
}

.f2f-delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.f2f-delete-btn:hover {
    background-color: #c82333;
}

/*===================================
 * COMMON FORM STYLES
 *===================================*/
.f2f-booking-form,
.f2f-cancellation-form {
    width: 100%;            
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;  
}

.f2f-booking-form .form-group,
.f2f-cancellation-form .form-group {
    margin-bottom: 20px;
    width: 100%;             
}

.f2f-booking-form label,
.f2f-cancellation-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.f2f-booking-form .required,
.f2f-cancellation-form .required {
    color: #e32;
    margin-left: 3px;
}

.f2f-booking-form input,
.f2f-booking-form select,
.f2f-booking-form textarea,
.f2f-cancellation-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    box-sizing: border-box;  
}

.f2f-booking-form textarea {
    height: 120px;
}

/*===================================
 * PUBLIC PRESENTATIONS DISPLAY
 *===================================*/
.f2f-public-presentations {
    width: 100%;             
    margin: 20px 0;
    box-sizing: border-box;  
}

.f2f-public-presentations h3 {
    margin-bottom: 25px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    color: #0073aa;
}

.f2f-presentations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.f2f-presentation-item {
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s, opacity 0.5s;
    opacity: 0;
    transform: translateY(10px);
}

.f2f-presentation-item.f2f-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.f2f-presentation-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.f2f-presentation-date {
    font-size: 1.2em;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
}

.f2f-presentation-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.f2f-presentation-presenter {
    font-size: 1.1em;
}

.f2f-company {
    font-style: italic;
    color: #555;
    margin-left: 5px;
}

.f2f-topic-label {
    font-weight: bold;
}

.f2f-presentation-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: 600;
    margin-top: 5px;
    max-width: fit-content;
}

.f2f-presentation-type.virtual {
    background-color: #e6f3fa;
    color: #0073aa;
}

.f2f-presentation-type.in-person {
    background-color: #f0f5ea;
    color: #5a9a3d;
}

/*===================================
 * ADMIN INTERFACE - GENERAL
 *===================================*/
.f2f-admin-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.f2f-section {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Admin tables */
.f2f-dates-table,
.f2f-admin-panel table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.f2f-dates-table th,
.f2f-dates-table td,
.f2f-admin-panel th,
.f2f-admin-panel td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.f2f-dates-table th,
.f2f-admin-panel th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* Admin tabs */
.f2f-admin-tabs {
    margin-bottom: 20px;
}

.f2f-tab-nav {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.f2f-tab-btn {
    padding: 10px 15px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.f2f-tab-btn.active {
    border-bottom-color: #0073aa;
    color: #0073aa;
}

.f2f-tab-content {
    display: none;
    padding: 15px 0;
}

.f2f-tab-content.active {
    display: block;
}

/*===================================
 * ADMIN PRESENTATIONS
 *===================================*/
.f2f-admin-responsive-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.f2f-mobile-cards {
    display: none;
}

.f2f-desktop-table {
    display: table;
    width: 100%;
}

.f2f-booking-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.f2f-card-header {
    background: #f5f5f5;
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.f2f-card-date {
    font-weight: bold;
    color: #0073aa;
    font-size: 1.1em;
    display: block;
}

.f2f-card-presenter {
    font-weight: bold;
    margin-top: 5px;
}

.f2f-card-details {
    padding: 15px;
}

.f2f-card-row {
    margin-bottom: 10px;
    display: flex;
}

.f2f-label {
    font-weight: 600;
    min-width: 80px;
    display: inline-block;
}

.f2f-value {
    flex: 1;
    word-break: break-word;
}

.f2f-card-actions {
    padding: 10px 15px 15px;
    text-align: center;
}

.f2f-card-actions .button {
    padding: 8px 15px;
    font-size: 14px;
    height: auto;
    width: 100%;
}

.f2f-delete-form {
    width: 100%;
    display: block;
}

.f2f-no-bookings {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    text-align: center;
    color: #666;
}

/*===================================
 * ADMIN DATES
 *===================================*/
.f2f-add-date-form {
    margin-bottom: 20px;
}

.f2f-add-date-form .form-group {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.f2f-add-date-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.f2f-add-date-form input[type="date"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

/*===================================
 * MOBILE DATES
 *===================================*/
.f2f-mobile-dates {
    display: none;
}

.f2f-date-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.f2f-date-value {
    padding: 12px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    color: #0073aa;
}

.f2f-date-actions {
    padding: 10px 15px;
    text-align: center;
}

.f2f-date-actions button {
    width: 100%;
}

.f2f-no-dates {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    text-align: center;
    color: #666;
}

/*===================================
 * RESPONSIVE STYLES
 *===================================*/
@media (min-width: 768px) {
    .f2f-presentation-item {
        flex-direction: row;
    }

    .f2f-presentation-date {
        flex: 0 0 220px;
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .f2f-add-date-form .form-group {
        flex-direction: row;
    }
    
    .f2f-add-date-form input[type="date"] {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .f2f-presentation-date {
        border-bottom: 1px solid #eee;
        padding-bottom: 8px;
    }
    
    .f2f-presentation-details {
        padding-top: 5px;
    }
    
    .f2f-admin-container {
        flex-direction: column;
    }
    
    .f2f-section {
        min-width: 100%;
    }
    
    .f2f-booking-form,
    .f2f-cancellation-form {
        padding: 15px;
    }
    
    .f2f-submit-btn,
    .f2f-cancel-btn {
        width: 100%;
        display: block;
    }
    
    .f2f-section h3 + h3 {
        display: none;
    }
}

@media screen and (max-width: 782px) {
    .f2f-mobile-cards {
        display: block;
    }
    
    .f2f-desktop-table {
        display: none !important;
    }
    
    .f2f-dates-table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    .f2f-admin-panel th, 
    .f2f-admin-panel td {
        padding: 12px 8px;
    }
    
    .f2f-add-date-form .form-group {
        display: flex;
        flex-direction: column;
    }
    
    .f2f-add-date-form input[type="date"] {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .f2f-add-date-form button {
        width: 100%;
    }
    
    .f2f-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .f2f-mobile-dates {
        display: block;
    }
    
    .f2f-dates-table {
        display: none !important;
    }
}

@media screen and (max-width: 480px) {
    .f2f-admin-panel button,
    .f2f-admin-panel .button {
        min-height: 40px;
        line-height: 1;
        padding: 10px 15px;
    }
    
    .f2f-card-actions .button {
        width: 100%;
    }
}