/* Custom styles for Security Payload Repository */

/* Dark mode styles */
:root {
    --mobile-breakpoint: 576px;
    --tablet-breakpoint: 768px;
    --desktop-breakpoint: 992px;
    --large-desktop-breakpoint: 1200px;

    --body-bg: rgba(245, 245, 245, 0.85);
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-color: #212529;
    --table-header-bg: #f8f9fa;
    --table-hover-bg: rgba(13, 110, 253, 0.05);
    --code-bg: #f8f9fa;
    --code-color: #212529;

    /* New mobile-specific variables */
    --mobile-touch-target: 44px;
    --mobile-padding: 10px;
    --mobile-font-size: 0.875rem;

    /* Enhanced smooth scrolling for mobile */
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    
    /* Code container variables */
    --code-container-bg: #f5f5f5;
    --code-container-border: #dee2e6;
}

[data-bs-theme="dark"] {
    --body-bg: rgba(33, 37, 41, 0.85);
    --card-bg: rgba(44, 48, 52, 0.9);
    --text-color: #f8f9fa;
    --table-header-bg: #343a40;
    --table-hover-bg: rgba(255, 255, 255, 0.05);
    --code-bg: #343a40;
    --code-color: #f8f9fa;
}

/* Add overlay to make content more readable with background image */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* Full screen layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
}

html {
    scroll-behavior: smooth;
    /* Fix 100vh issue on mobile browsers */
    height: -webkit-fill-available;
}

/* Body styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    text-size-adjust: 100%; /* Prevent iOS auto text resize */
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation; /* Improve mobile touch behavior */
    min-height: 100vh;
    /* Fix for mobile browsers */
    min-height: -webkit-fill-available;
    /* Background image - hacker working on laptop */
    background-image: url('https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTJ8fGhhY2tlcnxlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

/* Make main content fill available space */
main {
    flex: 1 0 auto;
}

/* Navbar styles - using sticky positioning instead of fixed */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background-color: rgba(33, 37, 41, 0.95) !important;
}

/* Header styling to work with background image */
header.bg-dark {
    background-color: rgba(33, 37, 41, 0.8) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

/* Header hover effect */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover:after {
    width: 100%;
}

/* Card styles */
.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-header {
    font-weight: bold;
    padding: 12px 20px;
}

.card-body {
    flex: 1 0 auto;
    overflow: visible;
}

/* Button styles */
.btn {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.btn-copy {
    padding: 2px 8px;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}

.btn-copy::after {
    content: "Copied!";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #198754;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.btn-copy.copied::after {
    transform: translateY(0);
}

.btn-favorite {
    color: #6c757d;
    transition: color 0.3s ease;
}

.btn-favorite.active {
    color: #ffc107;
}

.btn-favorite:hover {
    color: #ffc107;
}

.btn.active, .btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* Table styles */
.table-responsive {
    overflow-y: visible;
    overflow-x: auto;
}

.table {
    margin-bottom: 0;
    table-layout: fixed;
    width: 100%;
}

.table th {
    background-color: var(--table-header-bg);
    font-weight: 600;
}

.table tr:hover {
    background-color: var(--table-hover-bg);
}

.table td {
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 0; /* Add this to force wrapping */
}

/* Column widths */
.table th:nth-child(1), .table td:nth-child(1) {
    width: 40%;
}

.table th:nth-child(2), .table td:nth-child(2) {
    width: 45%;
}

.table th:nth-child(3), .table td:nth-child(3) {
    width: 15%;
}

/* Payload display */

/* Payload display */
.payload-text {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--code-bg);
    color: var(--code-color);
    padding: 8px;
    border-radius: 4px;
    display: block;
    word-break: break-all;
    white-space: pre-wrap;
    max-height: none;
    overflow: visible;
}

/* Code block for regex patterns */
pre.code-block {
    background-color: #272822;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}

/* Success copy notification */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1020;
    display: none;
}

/* General notification styling */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1030;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 0.95rem;
    max-width: 350px;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Notification types */
.notification-info {
    background-color: #0dcaf0;
    color: #fff;
}

.notification-success {
    background-color: #198754;
    color: #fff;
}

.notification-warning {
    background-color: #ffc107;
    color: #212529;
}

.notification-error {
    background-color: #dc3545;
    color: #fff;
}

.notification i {
    margin-right: 8px;
}

/* Improved tab navigation */
.nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.nav-tabs::-webkit-scrollbar {
    height: 5px;
}

.nav-tabs::-webkit-scrollbar-thumb {
    background-color: #adb5bd;
    border-radius: 10px;
}

.nav-tabs .nav-link {
    white-space: nowrap;
}

/* Tab scroll indicators for mobile */
.tab-scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-scroll-left {
    left: 0;
}

.tab-scroll-right {
    right: 0;
}

/* Scrollable Tabs with Indicators */
.tabs-container {
    position: relative;
    margin-bottom: 20px;
}

.tabs-scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tabs-scroll-indicator.show {
    opacity: 0.7;
}

.left-indicator {
    left: 0;
}

.right-indicator {
    right: 0;
}

.scrollable-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.scrollable-tabs::-webkit-scrollbar {
    display: none;
}

/* Skeleton Loading Animation */
.skeleton-loader {
    width: 100%;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-row {
    display: flex;
    margin-bottom: 10px;
    height: 30px;
}

.skeleton-cell {
    height: 100%;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    margin-right: 10px;
}

[data-bs-theme="dark"] .skeleton-cell {
    background-color: rgba(255, 255, 255, 0.1);
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Mobile Sticky Search */
@media (max-width: 992px) {
    .mobile-search-container {
        position: sticky;
        top: 56px; /* Height of navbar */
        z-index: 1020;
        background: var(--bs-dark);
        padding: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}

/* Recent Payloads Section */
.recent-payloads {
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

[data-bs-theme="dark"] .recent-payloads {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Tag Filtering */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.tag-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag-badge.active {
    background-color: #0d6efd;
    color: white;
}

/* Payload Testing Area */
.payload-sandbox {
    background-color: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.125);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.sandbox-output {
    margin-top: 15px;
    min-height: 100px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    background-color: var(--code-bg);
}

/* Search suggestions styling */
.search-suggestions-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0 0 0.25rem 0.25rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    animation: fadeIn 0.2s ease-in-out;
}

.search-suggestions-container .list-group {
    margin-bottom: 0;
    border-radius: 0;
}

.suggestion-item {
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover, .suggestion-item.focused {
    background-color: rgba(0, 123, 255, 0.1) !important;
}

.suggestion-item mark {
    background-color: rgba(255, 235, 59, 0.6);
    padding: 0.1em 0;
    border-radius: 2px;
}

.suggestion-text {
    font-family: monospace;
    word-break: word-break;
}

/* Search history styling */
.search-history-item {
    transition: all 0.2s ease;
}

.search-history-query {
    font-weight: 500;
}

.remove-history-item {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.remove-history-item:hover {
    opacity: 1;
}

/* Dark mode support for search suggestions and history */
[data-bs-theme="dark"] .search-suggestions-container {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: #343a40;
}

[data-bs-theme="dark"] .suggestion-item {
    color: #fff;
    background-color: #343a40;
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .suggestion-item:hover,
[data-bs-theme="dark"] .suggestion-item.focused {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Keyboard navigation indicator */
.keyboard-nav-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1060;
}

.keyboard-nav-hint.visible {
    opacity: 1;
}

/* Animation for search updates */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clear search button style */
#clear-search-button:focus {
    box-shadow: none;
}

/* Improved input focus */
#search-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    border-color: #80bdff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .table-responsive {
        overflow-x: auto;
    }
    
    .payload-text {
        min-width: 200px;
    }
    
    /* Improve tab navigation on tablets */
    .nav-tabs .nav-item {
        margin-bottom: 5px;
    }
    
    /* Adjust card spacing for better tablet view */
    .card {
        margin-bottom: 15px;
    }
    
    /* Fix z-index for navbar on mobile */
    .navbar {
        z-index: 1030;
    }
    
    /* Improve dropdown menus on mobile */
    .dropdown-menu {
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .dropdown-item {
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: calc(10px + env(safe-area-inset-left));
        padding-right: calc(10px + env(safe-area-inset-right));
        max-width: 100%;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .table-responsive {
        margin-left: -10px;
        margin-right: -10px;
        width: calc(100% + 20px);
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        position: relative;
    }

    .table-responsive::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, transparent, var(--body-bg));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .table-responsive.has-overflow::after {
        opacity: 1;
    }

    /* Improve table display on mobile */
    .table td, .table th {
        padding: 8px 5px;
        font-size: 0.9rem;
    }

    /* Better touch targets for mobile */
    .btn {
        padding: 8px 12px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Add active state for better touch feedback */
    .btn.active, .btn:active {
        transform: scale(0.96);
        opacity: 0.9;
    }

    /* Adjust navbar for better mobile viewing */
    .navbar-nav {
        margin-bottom: 10px;
    }

    /* Input group in navbar needs special handling */
    .navbar .input-group {
        width: 100%;
        max-width: 100%;
        margin: 8px 0;
    }

    /* Better spacing for elements */
    .card-body {
        padding: 15px 10px;
    }

    /* Improved mobile viewing of code blocks */
    .payload-text {
        font-size: 0.85rem;
        padding: 6px;
        max-width: 100%;
        white-space: pre-wrap;
    }
    
    /* Improve tab display on mobile */
    .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Improve button groups on mobile */
    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        margin-bottom: 5px;
        border-radius: 4px !important;
    }
    
    /* Fix horizontal scrolling issues */
    .table-responsive table {
        min-width: 100%;
    }
    
    /* Fix for bottom navigation on newer phones */
    main {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Improve navbar collapse animation */
    .navbar-collapse {
        transition: height 0.3s ease-in-out;
    }
    
    /* Fix for fixed elements on mobile */
    .navbar, .copy-notification {
        padding-top: env(safe-area-inset-top);
    }
    
    /* Prevent content from being hidden under bottom nav bars */
    .mb-4:last-child, .mb-5:last-child {
        margin-bottom: calc(1.5rem + env(safe-area-inset-bottom)) !important;
    }
    
    /* Better tab container positioning for mobile */
    .nav-tabs-container {
        position: relative;
        overflow: hidden;
        padding: 0 30px;
        margin: 0 -15px;
    }
    
    /* Improved table display on mobile */
    .table {
        font-size: var(--mobile-font-size);
    }
    
    /* Make mobile forms more accessible */
    input, select, textarea, .form-control {
        height: var(--mobile-touch-target);
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
    
    /* Fix mobile search */
    .search-container {
        position: relative;
        width: 100%;
    }
    
    #payload-to-encode {
        min-height: 60px;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 5px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Column width adjustments for tables on very small screens */
    .table th:nth-child(1), .table td:nth-child(1) {
        width: 35%;
    }
    
    .table th:nth-child(2), .table td:nth-child(2) {
        width: 40%;
    }
    
    .table th:nth-child(3), .table td:nth-child(3) {
        width: 25%;
    }
    
    /* Bookmark tools table on mobile */
    .bookmark-tools-table th:nth-child(1), .bookmark-tools-table td:nth-child(1) {
        width: 45%; /* Code column still gets more space */
    }
    
    .bookmark-tools-table th:nth-child(2), .bookmark-tools-table td:nth-child(2) {
        width: 35%; /* Description */
    }
    
    .bookmark-tools-table th:nth-child(3), .bookmark-tools-table td:nth-child(3) {
        width: 20%; /* Action gets more space for touch targets */
    }
    
    /* Adjusted copy button for small screens */
    .btn-copy {
        padding: 6px;
        min-height: 38px;
    }
    
    .btn-copy i {
        margin: 0;
    }
    
    .btn-copy span {
        display: none;
    }
    
    /* Improve touch targets on small devices */
    .table td, .table th {
        padding: 10px 5px;
    }
    
    /* Better fit cards on small screens */
    .card-header {
        padding: 10px 15px;
    }
    
    /* Fix search input on mobile */
    #search-input {
        height: 44px;
    }
    
    /* Improve nav tabs scroll behavior */
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Fix notification position on very small screens */
    .copy-notification {
        left: 10px;
        right: 10px;
        width: auto;
        text-align: center;
        font-size: 14px;
        padding: 8px 12px;
        top: calc(10px + env(safe-area-inset-top));
    }
    
    /* Fix for very small screens */
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Optimize table display on small screens */
    .table td, .table th {
        padding: 10px 5px;
        font-size: 0.8rem;
        white-space: normal;
        word-break: break-word;
    }
    
    /* Make sure text in tables doesn't overflow on mobile */
    .table .payload-text {
        font-size: 0.8rem;
        padding: 4px;
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    /* Improved card display on small screens */
    .card {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    /* Fix spacing in navbar on small screens */
    .navbar-brand {
        margin-right: 0;
        max-width: 70%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Additional mobile fixes for very small devices */
@media (max-width: 375px) {
    body {
        font-size: 0.875rem;
    }
      .table td, .table th {
        padding: 8px 4px;
    }
}

/* XSS Encoder specific styles */
.btn-group .dropdown-menu {
    margin-top: 0.25rem;
}

#encoded-results-table .payload-text {
    max-width: 500px;
    display: block;
    overflow-x: auto;
    word-wrap: break-word;
}

/* Bookmark Tools code container styles */
.code-container {
    background-color: var(--code-container-bg);
    border: 1px solid var(--code-container-border);
    border-radius: 0.25rem;
    position: relative;
    margin-bottom: 1rem;
}

/* Language label for code blocks */
.code-label {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.7rem;
    padding: 2px 5px;
    background-color: #0d6efd;
    color: white;
    border-radius: 3px 0 3px 0;
    opacity: 0.8;
    z-index: 1;
}

[data-bs-theme="dark"] .code-label {
    background-color: #0d6efd;
}

.code-container pre {
    padding: 1.5rem 1rem 1rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    border-radius: 0.25rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 150px; /* Limit the height of code blocks */
    overflow-y: auto; /* Add scrolling for tall code blocks */
}

.code-container code {
    color: var(--code-color);
    font-size: 0.85rem;
}

.code-container .btn-copy {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 1;
    opacity: 0.7;
}

.code-container .btn-copy:hover {
    opacity: 1;
}

[data-bs-theme="dark"] .code-container {
    background-color: #2a2d31;
    border-color: #444;
}

[data-bs-theme="dark"] .code-container code {
    color: #e9e9e9;
}

/* Bookmark Tools table specific styles */
.bookmark-tools-table th:nth-child(1), .bookmark-tools-table td:nth-child(1) {
    width: 50%; /* Code column gets more space */
}

.bookmark-tools-table th:nth-child(2), .bookmark-tools-table td:nth-child(2) {
    width: 35%; /* Description gets less */
}

.bookmark-tools-table th:nth-child(3), .bookmark-tools-table td:nth-child(3) {
    width: 15%; /* Action stays the same */
}

.bookmarklet-btn {
    cursor: move;
    user-select: none;
}

/* Draggable bookmark button styling */
.draggable-bookmark {
    cursor: grab;
    position: relative;
    padding-left: 30px !important;
    transition: all 0.2s ease-in-out;
}

.draggable-bookmark:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.draggable-bookmark:active {
    cursor: grabbing;
}

.draggable-bookmark::before {
    content: "↖";
    position: absolute;
    left: 8px;
    top: 6px;
    font-size: 12px;
    animation: dragHint 2s infinite;
}

@keyframes dragHint {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-3px, -3px); }
}

/* Style for encoder tab */
#encoder .card {
    border: none;
    box-shadow: none;
}

/* Make the textarea more prominent */
#payload-to-encode {
    resize: vertical;
    min-height: 80px;
    font-family: monospace;
}

/* Action buttons in the payload rows */
.btn-group .btn-sm {
    margin-right: 2px;
}

/* Highlight the copied button */
.btn-copy.copied {
    background-color: #198754;
    color: white;
}
