/* Shortcode table styles */
.pollbolt-shortcodes-table {
    border: none;
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pollbolt-shortcodes-table thead th {
    background-color: #f8f9fa;
    color: #2c3338;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #e2e4e7;
}

.pollbolt-shortcodes-table tbody tr {
    transition: background-color 0.2s ease;
}

.pollbolt-shortcodes-table tbody tr:hover {
    background-color: #f0f7ff !important;
}

.pollbolt-shortcodes-table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f1;
}

.pollbolt-shortcodes-table .shortcode-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pollbolt-shortcodes-table .shortcode-code {
    background: #f0f0f1;
    padding: 6px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    color: #3c434a;
    border: 1px solid #dcdcde;
    display: inline-block;
}

.pollbolt-shortcodes-table .copy-button {
    margin-left: 5px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    position: relative;
}

.pollbolt-shortcodes-table .copy-button:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
}

.pollbolt-shortcodes-table .copy-button .fa-copy {
    color: #2271b1;
    transition: color 0.2s ease;
}

.pollbolt-shortcodes-table .copy-button:hover .fa-copy {
    color: #135e96;
}

.pollbolt-shortcodes-table .copy-button.copied:after {
    content: "✓";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #2271b1;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    opacity: 0;
    animation: show-copied 1.5s ease forwards;
}

@keyframes show-copied {
    0% { opacity: 0; transform: translate(-50%, 5px); }
    20% { opacity: 1; transform: translate(-50%, 0); }
    80% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -5px); }
}

.pollbolt-shortcodes-table .form-url {
    text-decoration: none;
    color: #2271b1;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pollbolt-shortcodes-table .form-url:hover {
    color: #135e96;
    text-decoration: underline;
}

.pollbolt-shortcodes-table .delete-button {
    color: #b32d2e;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.pollbolt-shortcodes-table .delete-button:hover {
    color: #dc3232;
}

.pollbolt-shortcodes-table .just-created {
    color: #46b450;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Media queries for responsiveness on mobile devices */
@media screen and (max-width: 782px) {
    .pollbolt-shortcodes-table {
        display: block;
        overflow-x: auto;
    }
    
    .pollbolt-shortcodes-table .shortcode-code {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .pollbolt-shortcodes-table .form-url {
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
}

@media screen and (max-width: 480px) {
    .pollbolt-shortcodes-table thead th:nth-child(3),
    .pollbolt-shortcodes-table tbody td:nth-child(3) {
        display: none;
    }
    
    .pollbolt-shortcodes-table .shortcode-code {
        max-width: 80px;
    }
}
