/* Main Container */
.wrap {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: 20px;
}

/* Headings */
.wrap h1 {
    color: #23282d;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.wrap h2 {
    color: #23282d;
    margin: 25px 0 15px;
    font-size: 1.3em;
}

/* Table Styles */
.widefat {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.widefat th {
    background: #f7f7f7;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.widefat td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.widefat tr:hover td {
    background-color: #f9f9f9;
}

/* Follow Type Colors */
.widefat td.follow-type-nofollow {
    color: #d63638;
    font-weight: 600;
}

.widefat td.follow-type-dofollow {
    color: #00a32a;
    font-weight: 600;
}

/* Redirect Type Badges */
.redirect-type {
    text-align: center;
}

.redirect-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 45px;
}

.redirect-301 {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.redirect-302 {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffb74d;
}

.redirect-307 {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* Button Styles */
.button-small {
    margin: 0 5px 0 0;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
}

.button-small:hover {
    background: #005177;
    color: #fff;
}

.delete-cutelink {
    background: #d63638;
}

.delete-cutelink:hover {
    background: #b62b2d;
}

/* Copy Animation */
.copy-animation {
    position: absolute;
    font-size: 14px;
    font-weight: bold;
    opacity: 1;
    transition: all 0.8s ease-out;
    margin-left: 5px;
}

/* Search Container */
.cute-links-search-container {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

#search-cute-links {
    padding: 8px 35px 8px 10px;
    width: 250px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

#cute-links-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

#cute-links-search-btn .dashicons {
    font-size: 18px;
    color: #666;
}

/* Stats Cards */
.cutelinks-stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.cutelinks-stat-card {
    background: #fff;
    border-radius: 4px;
    padding: 15px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 150px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    cursor: default;
}

.cutelinks-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #e5e5e5;
}

.cutelinks-stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.cutelinks-stat-card p {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
}

/* Follow Type Selection */
.follow-type-selection {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f9f9f9;
}

.follow-type-selection h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #23282d;
}

.settings-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group > label:first-child {
    font-weight: 600;
    color: #23282d;
    margin-bottom: 5px;
}

.setting-group label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.setting-group input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* Form Styles */
.form-table th {
    width: 150px;
    padding: 10px 10px 10px 0;
}

.form-table td {
    padding: 5px 10px;
}

.regular-text {
    width: 100%;
    max-width: 500px;
}

/* Pagination */
.tablenav {
    margin: 15px 0;
}

.tablenav-pages {
    float: right;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    .cutelinks-stats-container {
        flex-direction: column;
    }
    
    .cutelinks-stat-card {
        min-width: 100%;
    }
    
    .widefat th, 
    .widefat td {
        padding: 8px 5px;
    }
    
    .button-small {
        margin-bottom: 5px;
    }
    
    .settings-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .redirect-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}