* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #fafafa;
    color: #262626;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: white;
    border-bottom: 1px solid #dbdbdb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: #262626;
}

.logo {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #262626;
    font-weight: 500;
}

.nav-icon {
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    color: #262626;
}

.nav-icon .material-symbols-outlined {
    font-size: 28px;
}

.nav-icon:hover {
    transform: scale(1.15);
    opacity: 1;
}

.nav-icon-create {
    background-color: #0095f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 1;
}

.nav-icon-create .material-symbols-outlined {
    color: white;
    font-size: 24px;
}

.nav-icon-create:hover {
    background-color: #0084e0;
    transform: scale(1.1);
}

.nav-icon-disabled {
    background-color: #9e9e9e !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.nav-icon-disabled:hover {
    background-color: #9e9e9e !important;
    transform: none !important;
    opacity: 0.6 !important;
}

/* Profile Menu Dropdown */
.profile-menu {
    position: relative;
}

.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.profile-btn:hover {
    transform: scale(1.05);
}

.profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dbdbdb;
    transition: border-color 0.2s;
}

.profile-pic.avatar-initials {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.profile-btn:hover .profile-pic {
    border-color: #262626;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background-color: white;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #262626;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.profile-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.profile-dropdown a:last-child {
    border-radius: 0 0 8px 8px;
}

.profile-dropdown a:hover {
    background-color: #fafafa;
}

.profile-dropdown a .material-symbols-outlined {
    font-size: 20px;
    color: #8e8e8e;
}

/* Main Content */
.main-content {
    padding: 30px 0;
    min-height: calc(100vh - 80px);
}

/* Feed */
.feed {
    max-width: 600px;
    margin: 0 auto;
}

.feed-header {
    margin-bottom: 20px;
    padding: 0 16px;
}

.feed-header h2 {
    font-size: 24px;
    font-weight: 600;
}

/* Posts Feed */
.posts-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.post-card {
    border-radius: 0;
    background-color: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    margin-bottom: 40px;
    border-bottom: 1px solid #dbdbdb;
}

.post-header-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.avatar-feed {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.avatar-feed.avatar-initials {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.author-name-feed {
    font-weight: 600;
    font-size: 13px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.privacy-badge {
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-left: auto;
}

.privacy-badge.public {
    opacity: 0.9;
}

.privacy-badge.private {
    opacity: 0.9;
}

.privacy-badge-detail {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background-color: #f0f0f0;
    color: #666;
    font-weight: 500;
}

.privacy-badge-detail.public {
    background-color: #e3f2fd;
    color: #1976d2;
}

.privacy-badge-detail.private {
    background-color: #fff3e0;
    color: #f57c00;
}

.post-media-wrapper {
    position: relative;
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.post-card img:not(.avatar-feed):not(.avatar-small) {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
}


.video-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10;
}

.post-info {
    padding: 12px 16px 16px 16px;
    background-color: white;
}

.post-actions-feed {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #262626;
    margin-bottom: 8px;
    font-weight: 600;
}

.post-actions-feed button {
    transition: transform 0.2s;
}

.post-actions-feed button:hover {
    transform: scale(1.1);
}

.post-actions-feed .material-symbols-outlined {
    transition: color 0.2s;
}

.post-card-caption {
    font-size: 14px;
    color: #262626;
    margin-bottom: 6px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-card-caption strong {
    font-weight: 600;
}

.post-date {
    font-size: 12px;
    color: #8e8e8e;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Post Detail */
.post-detail-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    max-height: 80vh;
}

.post-media {
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-media > img,
.post-media > video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.post-sidebar {
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #efefef;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
}

.author-name {
    font-weight: 600;
}

.post-actions {
    padding: 16px 0;
    border-bottom: 1px solid #efefef;
}

.btn-like {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
    color: #262626;
}

.btn-like:hover {
    transform: scale(1.1);
}

.btn-like .material-symbols-outlined {
    font-size: 28px;
    transition: color 0.2s;
}

.btn-like.liked {
    color: #ed4956;
}

.btn-like.liked .material-symbols-outlined {
    color: #ed4956;
    font-variation-settings: 'FILL' 1;
}

.post-caption {
    padding: 16px 0;
    border-bottom: 1px solid #efefef;
}

.post-location {
    padding: 12px 0;
    border-bottom: 1px solid #efefef;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.post-location .material-symbols-outlined {
    font-size: 18px;
    color: #8e8e8e;
}

.post-location a {
    color: #262626;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.post-location a:hover {
    color: #0095f6;
    text-decoration: underline;
}

/* Comments */
.comments-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 16px;
    min-height: 0;
}

.comments-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

#comments-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
    min-height: 0;
}

.comment {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-small.avatar-initials {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.comment-content {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.comment-content > div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.comment-time {
    font-size: 12px;
    color: #8e8e8e;
    margin-top: 4px;
}

.comment-like-btn {
    transition: transform 0.2s, color 0.2s;
}

.comment-like-btn:hover {
    transform: scale(1.1);
}

.comment-like-btn.liked {
    color: #0095f6 !important;
}

.comment-like-btn.liked .material-symbols-outlined {
    color: #0095f6;
    font-variation-settings: 'FILL' 1;
}

.comment-form {
    border-top: 1px solid #efefef;
    padding-top: 16px;
}

.comment-form textarea {
    width: 100%;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 10px;
    resize: vertical;
    min-height: 60px;
    margin-bottom: 10px;
}

.comment-form button {
    width: 100%;
}

.login-prompt {
    text-align: center;
    padding: 20px;
    color: #8e8e8e;
}

.login-prompt a {
    color: #0095f6;
    text-decoration: none;
}

/* Upload Page */
.upload-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
}

.upload-container h2 {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #dbdbdb;
    border-radius: 8px;
    cursor: pointer;
}

.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 15px;
}

.help-text {
    margin-top: 8px;
    font-size: 13px;
    color: #8e8e8e;
    font-style: italic;
}

.preview-container {
    margin-top: 20px;
    text-align: center;
}

.preview-container img,
.preview-container video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #efefef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #0095f6;
    transition: width 0.3s;
}

#progress-text {
    text-align: center;
    color: #8e8e8e;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

/* Profile */
.profile-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar.avatar-initials {
    width: 150px;
    height: 150px;
    font-size: 48px;
}

.profile-info {
    flex: 1;
}

.profile-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

.profile-info h2 {
    margin: 0;
}

.profile-username {
    color: #8e8e8e;
    font-size: 16px;
    margin-bottom: 16px;
}

.profile-stats {
    display: flex;
    gap: 40px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal[style*="display: none"] {
    display: none !important;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #dbdbdb;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #8e8e8e;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #262626;
}

.modal form {
    padding: 24px;
}

/* Confirmation Modal */
.confirm-modal-content {
    max-width: 400px;
}

.modal-body {
    padding: 24px;
    font-size: 15px;
    color: #262626;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #dbdbdb;
    justify-content: flex-end;
}

/* Profile Picture Upload */
.profile-pic-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.profile-pic-preview-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #dbdbdb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-pic-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-pic-preview.avatar-initials {
    width: 120px;
    height: 120px;
    font-size: 36px;
}

.profile-pic-upload input[type="file"] {
    display: none;
}

/* Image Position Container */
.image-position-container {
    margin-top: 16px;
    width: 100%;
}

.image-crop-area {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 8px;
    cursor: move;
}

.image-crop-area img {
    position: absolute;
    max-width: none;
    user-select: none;
    -webkit-user-drag: none;
}

.crop-circle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.zoom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.zoom-btn {
    background-color: #efefef;
    border: 1px solid #dbdbdb;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #262626;
}

.zoom-btn:hover {
    background-color: #dbdbdb;
    transform: scale(1.05);
}

.zoom-btn .material-symbols-outlined {
    font-size: 20px;
}

#zoom-level {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    min-width: 50px;
    text-align: center;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-icon-edit {
    background-color: #0095f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: white;
}

.btn-icon-edit:hover {
    background-color: #0084e0;
    transform: scale(1.05);
}

.btn-icon-edit .material-symbols-outlined {
    font-size: 20px;
    color: white;
}

.btn-icon-delete {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #8e8e8e;
    border-radius: 4px;
}

.btn-icon-delete:hover {
    background-color: #ffebee;
    color: #ed4956;
    transform: scale(1.05);
}

.btn-icon-delete .material-symbols-outlined {
    font-size: 20px;
}

.btn-primary {
    background-color: #0095f6;
    color: white;
}

.btn-primary:hover {
    background-color: #0084e0;
}

.btn-secondary {
    background-color: #efefef;
    color: #262626;
}

.btn-secondary:hover {
    background-color: #dbdbdb;
}

.btn-danger {
    background-color: #ed4956;
    color: white;
}

.btn-danger:hover {
    background-color: #d93848;
}

/* Utility Classes */
.loading {
    text-align: center;
    padding: 40px;
    color: #8e8e8e;
}

.error {
    text-align: center;
    padding: 40px;
    color: #ed4956;
}

.no-posts,
.no-comments {
    text-align: center;
    padding: 40px;
    color: #8e8e8e;
}

/* Post Type Tabs */
.post-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 2px solid #efefef;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #8e8e8e;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #262626;
}

.tab-btn.active {
    color: #0095f6;
    border-bottom-color: #0095f6;
}

/* Text Post Form */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: #8e8e8e;
    margin-top: 4px;
}

.color-pickers {
    display: flex;
    gap: 20px;
}

.color-picker-group {
    flex: 1;
}

.color-picker-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.color-picker-group input[type="color"] {
    width: 100%;
    height: 50px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    cursor: pointer;
}

/* Text Post Preview */
.text-post-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    transition: all 0.3s;
}

#preview-content {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Text Post Card (Feed) */
.text-post-card {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-radius: 0;
    cursor: pointer;
}

.text-post-content {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.4;
}

/* Text Post Detail View */
.text-post-detail {
    width: 100%;
    height: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.text-post-detail-content {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .post-detail-container {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 4px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .text-post-detail {
        padding: 40px;
    }

    .text-post-detail-content {
        font-size: 24px;
    }

    #preview-content {
        font-size: 18px;
    }

    .text-post-content {
        font-size: 18px;
    }
}

/* Admin Dashboard */
.admin-dashboard {
    padding: 2rem 0;
}

.admin-dashboard h2 {
    margin-bottom: 2rem;
    font-size: 28px;
    font-weight: 600;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card h3 {
    font-size: 32px;
    font-weight: 600;
    color: #0095f6;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #8e8e8e;
    font-size: 14px;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #dbdbdb;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #8e8e8e;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #262626;
}

.tab-btn.active {
    color: #262626;
    border-bottom-color: #0095f6;
}

.tab-content {
    display: none;
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.settings-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #dbdbdb;
}

.settings-section:last-of-type {
    border-bottom: none;
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    font-size: 14px;
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: #0095f6;
    background: white;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 12px;
    color: #8e8e8e;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    gap: 1rem;
    position: relative;
}

.user-delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ed4956;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-delete-btn:hover {
    background-color: #ffebee;
    color: #c62828;
}

.user-delete-btn .material-symbols-outlined {
    font-size: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dbdbdb;
}

.user-details {
    flex: 1;
}

.user-email {
    font-size: 14px;
    color: #8e8e8e;
    margin-bottom: 0.25rem;
}

.user-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-icon {
    font-size: 20px;
    color: #0095f6;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
}

.stat-label {
    font-size: 11px;
    color: #8e8e8e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-avatar img,
.user-avatar .avatar-initials {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.user-avatar .avatar-initials {
    background: #0095f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.user-info p {
    font-size: 14px;
    color: #8e8e8e;
    margin-bottom: 0.25rem;
}

.user-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.admin-badge {
    background: #0095f6;
    color: white;
}

.approved-badge {
    background: #4caf50;
    color: white;
}

.pending-badge {
    background: #ff9800;
    color: white;
}

.active-badge {
    background: #4caf50;
    color: white;
}

.inactive-badge {
    background: #f44336;
    color: white;
}

.posting-badge {
    background: #2196f3;
    color: white;
}

.no-posting-badge {
    background: #9e9e9e;
    color: white;
}

.public-posting-badge {
    background: #4caf50;
    color: white;
}

.no-public-posting-badge {
    background: #757575;
    color: white;
}

.location-badge {
    background: #ff9800;
    color: white;
}

.no-location-badge {
    background: #9e9e9e;
    color: white;
}

.failed-login-badge {
    background: #ff5722;
    color: white;
}

.warning-badge {
    background: #ff9800;
    color: white;
}

.user-permissions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.permission-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.permission-group h5 {
    font-size: 13px;
    font-weight: 600;
    color: #262626;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.permission-row {
    display: flex;
    align-items: center;
}

/* Toggle Switch Styles */
.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.toggle-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s;
    margin-right: 10px;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background-color: #0095f6;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-switch input[type="checkbox"]:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-switch input[type="checkbox"]:disabled ~ .toggle-label {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-label {
    font-size: 14px;
    color: #262626;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 13px;
}

.message {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 14px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.empty-message {
    text-align: center;
    padding: 3rem;
    color: #8e8e8e;
    font-size: 14px;
}

@media (max-width: 768px) {
    .user-card {
        flex-direction: column;
        gap: 1rem;
    }

    .user-actions {
        width: 100%;
        justify-content: stretch;
    }

    .user-actions button {
        flex: 1;
    }
}

/* Login Tabs */
.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    overflow: hidden;
}

.login-tab-btn {
    flex: 1;
    background: #fafafa;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #8e8e8e;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-right: 1px solid #dbdbdb;
}

.login-tab-btn:last-child {
    border-right: none;
}

.login-tab-btn:hover {
    background: #f5f5f5;
    color: #262626;
}

.login-tab-btn.active {
    background: white;
    color: #0095f6;
    font-weight: 600;
}

.login-tab-content {
    display: none;
}

.login-tab-content.active {
    display: block;
}

/* Security Logs */
.security-controls {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 4px;
}

.security-summary {
    padding: 1rem;
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.user-security-section {
    margin-bottom: 2rem;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 1rem;
    background: white;
}

.user-security-section h4 {
    margin: 0 0 1rem 0;
    font-size: 16px;
    color: #262626;
}

.security-table {
    width: 100%;
    border-collapse: collapse;
}

.security-table th {
    background: #fafafa;
    padding: 0.75rem;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #262626;
    border-bottom: 2px solid #dbdbdb;
}

.security-table td {
    padding: 0.75rem;
    font-size: 13px;
    border-bottom: 1px solid #efefef;
}

.security-table tr:last-child td {
    border-bottom: none;
}

.security-table code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #d63384;
}

.user-agent {
    color: #8e8e8e;
    font-size: 12px;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
