/*
 * Updated styles for GP Guest Profiles plugin
 */
.gp-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    margin: 12px 0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.04)
}

.gp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 12px
}

.gp-stat {
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center
}

.gp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed;
}

.gp-table th,.gp-table td {
    border: 1px solid #e5e7eb;
    padding: 8px;
    text-align: left;
    word-wrap: break-word;
}

.gp-table td:nth-child(1) {width: 50%;}
.gp-table td:nth-child(2) {width: 15%;}
.gp-table td:nth-child(3) {width: 20%;}
.gp-table td:nth-child(4) {width: 15%;}

.gp-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
    font-weight: 600;
}

.gp-badge-publish {
    background-color: #d1fae5;
    color: #065f46;
}

.gp-badge-rejected {
    background-color: #fee2e2;
    color: #b91c1c;
}

.gp-search {
    display: flex;
    gap: 8px;
    margin: 8px 0;
}

.gp-avatar {
    border-radius: 50%;
    overflow: hidden;
    width: 72px;
    height: 72px;
}

.gp-muted {
    color: #6b7280;
    font-size: 12px;
}

.gp-input {
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    width: 100%;
}

.gp-btn {
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.gp-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.gp-num {
    font-size: 24px;
    font-weight: 800;
}

.gp-container {
    max-width: 960px;
    margin: 24px auto;
}

.gp-btn-publish {
    background-color: #10B981;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.gp-btn-publish:hover {
    background-color: #059669;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* New CSS to fix the filter layout */
.gp-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gp-filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* Fixed select dropdown so text doesn't overlap icon */
.gp-filter-form select.gp-input {
    width: auto;
    min-width: 150px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 28px; /* icon ke liye space */
    background-image: url("data:image/svg+xml;utf8,<svg fill='%236b7280' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

/* === Select arrow fix: robust wrapper-based approach === */
.gp-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}
.gp-select-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 36px; /* space for arrow */
    background-color: #fff;
    background-image: none !important;
    max-width: 100%;
    height: 40px;
    line-height: 20px;
}
.gp-select::after {
    content: "";
    position: absolute;
    right: 10px;
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #6b7280; /* arrow color */
}
/* Ensure filter form wraps nicely on small screens */
.gp-filter-form,
.gp-card form[method="get"] {
    flex-wrap: wrap;
}
