/* Ultimate Security Passkeys Register Shortcode Styles */

.ultimate-security-shortcode {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ultimate-security-shortcode .ultimate-security-admin--heading {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.ultimate-security-shortcode .description {
    color: #5a6c7d;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Table Styles */
.ultimate-security-shortcode .ultimate-security-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ultimate-security-shortcode .ultimate-security-list-table thead {
    background: #7C3AED;
    color: white;
}

.ultimate-security-shortcode .ultimate-security-list-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.ultimate-security-shortcode .ultimate-security-list-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #2c3e50;
    vertical-align: middle;
}

.ultimate-security-shortcode .ultimate-security-list-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.ultimate-security-shortcode .ultimate-security-list-table tbody tr:last-child td {
    border-bottom: none;
}

/* Empty state */
.ultimate-security-shortcode .ultimate-security-list-table td[colspan="4"] {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 30px;
    background: #f8f9fa;
}

/* Button Styles */
.ultimate-security-shortcode .button {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.ultimate-security-shortcode .button.delete {
    background: #e74c3c;
    color: white;
}

.ultimate-security-shortcode .button.delete:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.ultimate-security-shortcode .button-secondary {
    background: #7C3AED;
    color: white;
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 6px;
    margin-top: 10px;
}

.ultimate-security-shortcode .button-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Register button specific styles */
.ultimate-security-shortcode .wp-register-new-passkey {
    background: #10B981;
    border: none;
    color: white;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.ultimate-security-shortcode .wp-register-new-passkey:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    background: #059669;
}

.ultimate-security-shortcode .wp-register-new-passkey:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.2);
}

/* Message area */
.ultimate-security-shortcode .wp-register-passkey--message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

.ultimate-security-shortcode .wp-register-passkey--message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.ultimate-security-shortcode .wp-register-passkey--message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ultimate-security-shortcode {
        margin: 10px;
        padding: 20px;
    }
    
    .ultimate-security-shortcode .ultimate-security-admin--heading {
        font-size: 20px;
    }
    
    .ultimate-security-shortcode .ultimate-security-list-table {
        font-size: 12px;
    }
    
    .ultimate-security-shortcode .ultimate-security-list-table th,
    .ultimate-security-shortcode .ultimate-security-list-table td {
        padding: 10px 8px;
    }
    
    .ultimate-security-shortcode .ultimate-security-list-table th {
        font-size: 11px;
    }
    
    /* Stack table on mobile */
    .ultimate-security-shortcode .ultimate-security-list-table,
    .ultimate-security-shortcode .ultimate-security-list-table thead,
    .ultimate-security-shortcode .ultimate-security-list-table tbody,
    .ultimate-security-shortcode .ultimate-security-list-table th,
    .ultimate-security-shortcode .ultimate-security-list-table td,
    .ultimate-security-shortcode .ultimate-security-list-table tr {
        display: block;
    }
    
    .ultimate-security-shortcode .ultimate-security-list-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .ultimate-security-shortcode .ultimate-security-list-table tr {
        background: white;
        border: 1px solid #e1e5e9;
        border-radius: 6px;
        margin-bottom: 10px;
        padding: 15px;
    }
    
    .ultimate-security-shortcode .ultimate-security-list-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .ultimate-security-shortcode .ultimate-security-list-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: #7C3AED;
    }
}

/* Loading states */
.ultimate-security-shortcode .button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.ultimate-security-shortcode .button.loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}