/**
 * Frontend Styles for BookingPress Minutes Manager
 */

/* Section Headings */
.bpm-section-heading {
    line-height: 24px;
    display: inline-block;
    width: 100%;
    margin: 15px 0 20px;
    padding: 5px;
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

/* Minutes Table */
.bpm-minutes-section {
    margin: 30px 0;
}

.bpm-minutes-section h2 {
    margin-bottom: 25px;
}

.bpm-minutes-table-wrapper {
    overflow-x: auto;
    margin: 0;
}

.bpm-minutes-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #dee5e7;
}

.bpm-minutes-table thead {
    background: #f6f8f8;
}

.bpm-minutes-table thead tr th {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: left;
    color: #444;
    background-color: #f6f8f8;
    border: 1px solid #dee5e7 !important;
    padding: 8px 5px !important;
    min-height: 50px;
    word-break: inherit;
}

.bpm-minutes-table tbody tr td {
    padding: 8px 5px;
    text-align: left;
    font-size: 14px;
    color: #333;
    border: 1px solid #e5e5e5 !important;
    background: #fff;
    vertical-align: middle;
}

.bpm-minutes-table tbody tr {
    background: #fff;
    border: 1px solid #e5e5e5;
}

.bpm-minutes-table tbody tr:hover {
    background: #fafafa;
}

.bpm-minutes-table .bpm-remaining {
    font-weight: 600;
    color: #000;
}

.bpm-minutes-table .bpm-notes {
    font-size: 13px;
    color: #666;
    max-width: 300px;
}

/* Status Badges */
.bpm-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bpm-status-badge.bpm-status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.bpm-status-badge.bpm-status-expired {
    background: #ffebee;
    color: #c62828;
}

.bpm-status-badge.bpm-status-archived {
    background: #f5f5f5;
    color: #757575;
}

/* Expired Row Styling */
.bpm-status-expired td {
    opacity: 0.7;
}

/* No Minutes Message */
.bpm-no-minutes {
    padding: 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    color: #666;
}

/* Plan Status - Clean styling with no background */
.bpm-plan-status {
    margin: 20px 0;
}

.bpm-plan-status p {
    margin: 8px 0;
    line-height: 1.6;
}

.bpm-plan-status .bpm-plan-name {
    font-size: 18px;
    color: #33227D;
    font-weight: 600;
}

.bpm-plan-status .bpm-plan-name strong {
    color: #33227D;
}

.bpm-plan-status .bpm-plan-minutes {
    font-size: 16px;
    color: #000;
}

.bpm-plan-status .bpm-remaining-minutes {
    font-size: 16px;
    color: #000;
}

.bpm-plan-status .bpm-remaining-minutes strong {
    font-weight: 600;
}

.bpm-no-plan {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

/* Subscription Info */
.bpm-subscription-info {
    margin: 15px 0;
}

.bpm-subscription-info p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* Subscription Buttons - Diagonal rounded corners (top-left and bottom-right) */
.bpm-sub-button-wrapper {
    display: block;
    margin: 15px 0;
}

.bpm-sub-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    border: none;
    border-top-left-radius: 25px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    line-height: 1.5;
    min-width: 120px;
}

.bpm-sub-button:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.bpm-sub-button:active {
    transform: translateY(0);
}

/* Current Plan Button */
.bpm-sub-button-current {
    cursor: default;
    opacity: 1;
}

.bpm-sub-button-current:hover {
    transform: none;
    box-shadow: none;
}

.bpm-sub-button-current[disabled] {
    opacity: 1;
    padding: 12px 30px;
    font-size: 16px;
}

/* Upgrade Button */
.bpm-sub-button-upgrade {
    /* Inherits bg_color from inline styles */
}

/* Downgrade Button */
.bpm-sub-button-downgrade {
    /* Inherits bg_color from inline styles */
}

/* Error Messages */
.bpm-error {
    padding: 12px 15px;
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 4px;
    color: #c62828;
    margin: 15px 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .bpm-minutes-table {
        font-size: 13px;
    }
    
    .bpm-minutes-table th,
    .bpm-minutes-table td {
        padding: 8px 10px;
    }
    
    .bpm-minutes-table .bpm-notes {
        max-width: 150px;
        font-size: 12px;
    }
    
    .bpm-sub-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .bpm-minutes-table {
        font-size: 12px;
    }
    
    .bpm-minutes-table th,
    .bpm-minutes-table td {
        padding: 6px 8px;
    }
}
