/* General Overlay */
.bluesky-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dim background effect */
    z-index: 1000; /* Below the pop-ups but above everything else */
}

/* Common Pop-Up Container Styles */
.bluesky-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the pop-up */
    width: 500px;
    max-width: 90%;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1100; /* Above the overlay */
}

/* Add Network Pop-Up */
#add-network-popup {
    z-index: 1101; /* Ensure it's above other pop-ups if open */
}

/* Edit Network Pop-Up */
#edit-network-popup {
    z-index: 1102; /* Ensure it's above the Add Network Pop-Up */
}

/* Pop-Up Header */
.bluesky-popup-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

/* Form Fields */
.bluesky-popup-field {
    margin-bottom: 20px;
}

.bluesky-popup-field label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.bluesky-popup-field input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Action Buttons */
.bluesky-popup-actions {
    text-align: center;
}

.bluesky-popup-actions button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #0073aa;
    color: #fff;
}

.bluesky-popup-actions button:hover {
    background: #005f8d;
}
/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0073aa;
}

input:checked + .slider:before {
    transform: translateX(14px);
}
/* this is for create post  */
.bluesky-create-post {
    max-width: 80%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: #333;
}

.bluesky-create-post h1,
.bluesky-create-post h2 {
    text-align: center;
}

.message-section textarea {
    width: 60%;
    height: 100px;
    margin: 0 auto;
    display: block;
    resize: none;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#char-count {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.media-section {
    text-align: center;
    margin-top: 20px;
}

.media-preview {
    margin-top: 10px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    max-width: 60%;
    margin: 10px auto;
    text-align: center;
}

.network-section {
    text-align: center;
    margin-top: 20px;
}

.network-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.network-icon {
    width: 64px;
    height: 64px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 4px;
    transition: all 0.3s;
}

.network-icon img {
    width: 100%;
    height: auto;
}

.network-icon:hover {
    border-color: #0073aa;
}

.network-icon.selected {
    border-color: #00a32a;
}

.publish-section {
    text-align: center;
    margin-top: 20px;
}

#post-type {
    padding: 10px;
    font-size: 16px;
    margin-top: 10px;
}

.schedule-picker {
    margin-top: 15px;
}

.schedule-picker input {
    padding: 10px;
    font-size: 16px;
}

.action-section {
    text-align: center;
    margin-top: 20px;
}

#action-button {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#action-button:hover {
    background-color: #005a87;
}
.media-preview {
    margin-top: 10px;
}

.media-thumbnail {
    max-width: 150px;
    max-height: 150px;
    margin: 5px;
    display: inline-block;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.video-thumbnail-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-thumbnail-wrapper video {
    max-width: 150px;
    cursor: pointer;
}

.video-thumbnail-wrapper .open-video-player {
    text-decoration: none;
    color: #0073aa;
    font-size: 14px;
    margin-left: 10px;
}

.video-thumbnail-wrapper .open-video-player:hover {
    text-decoration: underline;
    color: #005177;
}
/* Switch style for status toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4caf50;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

/* Pop-up modal for viewing attachments */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: 5% auto;
    padding: 20px;
    background: #fff;
    width: 60%;
    max-width: 800px;
    text-align: center;
    border-radius: 10px;
}

.modal-content img, .modal-content video {
    max-width: 100%;
    max-height: 400px;
}
.pagination-links {
    display: flex;
    margin-top: 10px;
    text-align: right; 
    width: 100%; 
    justify-content: flex-end;
    font-size: 17px;
}

.pagination-links a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
}

.pagination-links a.active {
    background-color: #0dbef9; /* Light blue */
    color: white;
}

.pagination-links a:hover:not(.active) {
    background-color: #ddd;
}
#search-posts{
    margin: 5px;
}
#message-container {
    position: fixed;
    top: 30px;
    right: 10px;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 18px;
    z-index: 9999; /* Ensure it's always on top */
  }
  
  .success {
    background-color: #4CAF50;
    color: white;
  }
  
  .error {
    background-color: #f44336;
    color: white;
  }
  #loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 9999; /* Ensure it's above all other elements */
    display: flex;
    justify-content: center;
    align-items: center;
}

#loader-container {
    text-align: center;
    color: #fff;
}

#loader-container img {
    width: 50px; /* Adjust size of the GIF as needed */
    margin-bottom: 10px;
}
#avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
  }
  
  #avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }