/* User Page Styles for Audiențe */

.cjvs-aud-user-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cjvs-aud-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.cjvs-aud-user-page h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 10px 0;
}

.cjvs-aud-description {
    color: #50575e;
    margin: 0;
    font-size: 15px;
}

/* Buttons */
.cjvs-aud-button-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3788d8;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.cjvs-aud-button-primary:hover {
    background: #2c6eb8;
    color: #fff;
}

.cjvs-aud-button-primary:disabled {
    background: #c3c4c7;
    cursor: not-allowed;
}

.cjvs-aud-button-primary .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.cjvs-aud-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #3788d8;
    padding: 12px 24px;
    border: 2px solid #3788d8;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cjvs-aud-button-secondary:hover {
    background: #3788d8;
    color: #fff;
}

/* Table Section */
.cjvs-aud-table-section {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cjvs-aud-loading {
    text-align: center;
    padding: 40px;
    color: #50575e;
}

.cjvs-aud-empty {
    text-align: center;
    padding: 60px 20px;
    color: #50575e;
}

.cjvs-aud-empty .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.cjvs-aud-empty p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Table */
.cjvs-aud-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.cjvs-aud-table thead {
    background: #f6f7f7;
}

.cjvs-aud-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #1d2327;
    border-bottom: 2px solid #c3c4c7;
}

.cjvs-aud-table td {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.cjvs-aud-table tbody tr:hover {
    background: #f6f7f7;
}

.cjvs-aud-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table cells */
.cjvs-aud-table-id {
    font-weight: 600;
    color: #3788d8;
}

.cjvs-aud-table-tip {
    display: inline-block;
    padding: 4px 10px;
    background: #e7f3ff;
    color: #0066cc;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.cjvs-aud-table-motiv {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #50575e;
}

.cjvs-aud-table-date {
    font-size: 13px;
    color: #50575e;
    white-space: nowrap;
}

.cjvs-aud-table-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cjvs-aud-table-status.pending {
    background: #fef3cd;
    color: #997404;
}

.cjvs-aud-table-status.approved {
    background: #d4edda;
    color: #155724;
}

.cjvs-aud-table-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.cjvs-aud-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.cjvs-aud-details-list li {
    margin-bottom: 4px;
}

.cjvs-aud-details-list strong {
    color: #1d2327;
}

.cjvs-aud-meeting-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #3788d8;
    color: #fff;
    padding: 6px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    transition: background-color 0.2s ease;
}

.cjvs-aud-meeting-link:hover {
    background: #2c6eb8;
    color: #fff;
}

/* Modal */
.cjvs-aud-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.cjvs-aud-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cjvs-aud-modal-large {
    max-width: 800px;
}

.cjvs-aud-modal-content h2 {
    margin-top: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 24px;
}

.cjvs-aud-modal-close {
    color: #50575e;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cjvs-aud-modal-close:hover,
.cjvs-aud-modal-close:focus {
    color: #1d2327;
}

/* Form */
.cjvs-aud-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.cjvs-aud-form-group {
    margin-bottom: 20px;
}

.cjvs-aud-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.cjvs-aud-form-group input[type="text"],
.cjvs-aud-form-group input[type="email"],
.cjvs-aud-form-group input[type="tel"],
.cjvs-aud-form-group select,
.cjvs-aud-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.cjvs-aud-form-group input:focus,
.cjvs-aud-form-group select:focus,
.cjvs-aud-form-group textarea:focus {
    border-color: #3788d8;
    outline: none;
    box-shadow: 0 0 0 1px #3788d8;
}

.cjvs-aud-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.cjvs-aud-char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #50575e;
    margin-top: 4px;
}

.cjvs-aud-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Success/Error Messages */
.cjvs-aud-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.cjvs-aud-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cjvs-aud-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Notification Bar */
.cjvs-aud-notification-bar {
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    background: #3788d8;
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 99999;
    display: none;
    animation: slideDown 0.3s ease;
}

.cjvs-aud-notification-bar.show {
    display: block;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.cjvs-aud-notification-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cjvs-aud-notification-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
}

.cjvs-aud-notification-text .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.cjvs-aud-notification-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cjvs-aud-notification-link {
    background: #fff;
    color: #3788d8;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.cjvs-aud-notification-link:hover {
    background: #f0f0f0;
    color: #3788d8;
}

.cjvs-aud-notification-close {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cjvs-aud-notification-close:hover {
    background: #fff;
    color: #3788d8;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .cjvs-aud-user-page {
        padding: 15px;
    }

    .cjvs-aud-header {
        flex-direction: column;
        align-items: stretch;
    }

    .cjvs-aud-table-section {
        padding: 20px;
        overflow-x: auto;
    }

    .cjvs-aud-table {
        font-size: 13px;
    }

    .cjvs-aud-table th,
    .cjvs-aud-table td {
        padding: 10px;
    }

    .cjvs-aud-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cjvs-aud-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }

    .cjvs-aud-form-actions {
        flex-direction: column;
    }

    .cjvs-aud-notification-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .cjvs-aud-notification-bar {
        top: 46px;
    }
}
