.wptc-feed-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111;
}

/* WhatsApp / Theme Colors */
:root {
    --wptc-teal: #075e54;
    --wptc-teal-light: #128c7e;
    --wptc-green: #25d366;
    --wptc-bg: #ece5dd;
    --wptc-white: #ffffff;
    --wptc-blue-check: #34b7f1;
}

/* Profiles */
.wptc-banner {
    height: 150px;
    background-color: var(--wptc-teal);
    background-image: linear-gradient(to bottom right, var(--wptc-teal), var(--wptc-teal-light));
}

.button.button-primary {
    background: var(--wptc-teal-light) !important;
    border-radius: 50px !important;
    border-color: var(--wptc-teal-light) !important;
    color: #fff !important;
    padding: 5px 10px !important;
    min-height: 44px !important;
    min-width: 44px !important;
}
#wptc-cancel-edit-btn{
    border-radius: 50px !important;
    background-color: red !important;
    color: #fff !important;
    min-height: 44px !important;
    min-width: 44px !important;
}
.button.button-primary:hover {
    background: var(--wptc-teal) !important;
}

.wptc-image-upload-btn {
    cursor: pointer;
    color: var(--wptc-teal-light);
}

.wptc-action:hover {
    color: var(--wptc-teal-light);
}

/* Profile Header */
.wptc-profile-header {
    border: 1px solid #e1e8ed;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    margin-bottom: 20px;
}
.wptc-profile-info {
    padding: 15px;
    position: relative;
    background: #fff;
}
.wptc-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin-top: -65px;
    background: #ccc;
    object-fit: cover;
}
.wptc-profile-name {
    font-size: 20px;
    font-weight: 800;
    margin-top: 10px;
}
.wptc-profile-handle {
    color: #657786;
    margin-bottom: 15px;
}

/* Tweet Form */
.wptc-tweet-form {
    border: 1px solid #e1e8ed;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
}
.wptc-tweet-form textarea {
    width: 100%;
    border: none;
    resize: none;
    font-size: 16px;
    outline: none;
    min-height: 80px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wptc-form-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f8fa;
    padding-top: 10px;
    margin-top: 10px;
}
.wptc-preview-image {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 10px;
    display: none;
}

/* Feed & Tweets */
.wptc-feed {
    border: 1px solid #e1e8ed;
    border-radius: 5px;
    background: #fff; /* Could be #e5ddd5 for whatsapp bg pattern */
}
.wptc-tweet {
    padding: 15px;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    gap: 15px;
}
.wptc-tweet-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}
.wptc-tweet-body {
    flex: 1;
    min-width: 0; /* Fix flex overflow */
}
.wptc-tweet-header {
    margin-bottom: 5px;
}
.wptc-tweet-header a {
    text-decoration: none;
    color: inherit;
    font-size: 16px;
}
.wptc-tweet-header a:hover {
    text-decoration: underline;
}

.wptc-tweet-image {
    margin-top: 10px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e1e8ed;
    cursor: pointer;
}
.wptc-tweet-image img {
    width: 100%;
    display: block;
    transition: opacity 0.2s;
}
.wptc-tweet-image img:hover {
    opacity: 0.9;
}

/* Actions */
.wptc-actions {
    display: flex;
    gap: 40px;
    margin-top: 15px;
    color: #657786;
}
.wptc-action {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 14px;
}
.wptc-reply-form {
    margin-top: 15px;
    display: none;
    border-top: 1px solid #e1e8ed;
    padding-top: 10px;
}
.wptc-replies-list {
    margin-top: 15px;
    background: #f0f2f5; 
    border-radius: 10px;
    padding: 10px;
    display: none; 
}
.wptc-reply-item {
    border-bottom: 1px solid #e1e8ed;
    padding: 8px 0;
    font-size: 14px;
}
.wptc-reply-item:last-child { border-bottom: none; }

/* Lightbox */
.wptc-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    display: flex;
}
.wptc-lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.wptc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    font-weight: bold;
}
.wptc-lightbox-close:hover {
    color: #ccc;
}

/* --- MESSENGER STYLES --- */
#wptc-inbox-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #eee;
    background: #fff;
}

.wptc-conv-item {
    background-color: #fff;
    color: #333;
}
.wptc-conv-item:hover {
    background-color: #f5f5f5;
}

.wptc-msg-bubble {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 7.5px;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}
.wptc-msg-me {
    background: #dcf8c6; /* WhatsApp outgoing */
    color: #000;
    align-self: flex-end;
}
.wptc-msg-other {
    background: #fff;
    color: #000;
    align-self: flex-start;
}

/* --- AUTH STYLES --- */
.wptc-auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    color: #333; /* Ensure text is dark on white bg */
}
.wptc-auth-container h2 {
    color: #333; /* Ensure heading is readable */
    margin-bottom: 20px;
}
.wptc-auth-form input[type="text"], 
.wptc-auth-form input[type="password"],
.wptc-auth-form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: #333;
    box-sizing: border-box; /* Fix input width overflow */
}
.wptc-auth-form input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
    margin-bottom: 0;
    vertical-align: middle;
}
.wptc-auth-links {
    margin-top: 20px;
}
.wptc-auth-links a {
    font-size: 13px;
    color: #0073aa;
    text-decoration: none;
    margin: 0 10px;
}

/* --- COOKIE BANNER --- */
#wptc-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 10000;
    display: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
#wptc-cookie-banner button {
    background: var(--wptc-teal-light);
    border: none;
    padding: 8px 20px;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    margin-left: 15px;
}

/* --- AGE GATE --- */
#wptc-age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 20000;
    display: none; /* JS will toggle */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    text-align: center;
}
#wptc-age-gate h2 { color: #fff; margin-bottom: 20px; }
#wptc-age-gate button {
    background: var(--wptc-green);
    border: none;
    padding: 15px 40px;
    color: #fff;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    margin: 10px;
}
#wptc-age-gate button.decline {
    background: #dc3545;
}

/* Load More Button */
#wptc-load-more.wptc-load-more-btn {
    background-color: #fff !important;
    background-image: none !important;
    color: var(--wptc-teal-light) !important;
    border: 1px solid var(--wptc-teal-light) !important;
    border-radius: 25px !important;
    padding: 10px 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-transform: none !important;
    line-height: 1.5 !important;
}

#wptc-load-more.wptc-load-more-btn svg {
    transition: transform 0.5s ease;
}

#wptc-load-more.wptc-load-more-btn:hover {
    background-color: var(--wptc-teal-light) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#wptc-load-more.wptc-load-more-btn:hover svg {
    transform: rotate(180deg);
}

#wptc-load-more.wptc-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}