/* LinkCentral Dashboard Widget Styles */

.linkcentral-dashboard-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.linkcentral-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.linkcentral-stat-box {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.linkcentral-stat-box h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.linkcentral-stat-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 8px;
}

.linkcentral-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.linkcentral-stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #0073aa;
    line-height: 1.2;
    margin-bottom: 3px;
}

.linkcentral-stat-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
}

.linkcentral-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.linkcentral-section-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.linkcentral-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.linkcentral-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #f1f3f4;
}

.linkcentral-link-item:last-child {
    border-bottom: none;
}

.linkcentral-link-title {
    flex: 1;
    margin-right: 10px;
}

.linkcentral-link-title a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
}

.linkcentral-link-title a:hover {
    color: #005177;
    text-decoration: underline;
}

.linkcentral-link-stats {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #6c757d;
}

.linkcentral-click-count {
    font-weight: 600;
    color: #495057;
}

.linkcentral-no-data {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 20px;
}

.linkcentral-no-data p {
    margin: 0;
    font-size: 14px;
}

.linkcentral-no-data a {
    color: #0073aa;
    text-decoration: underline;
    font-weight: 500;
}

.linkcentral-widget-footer {
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
    padding: 12px 15px;
    margin: 12px -12px -12px -12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.linkcentral-footer-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.linkcentral-footer-buttons .dashicons {
    vertical-align: middle;
    margin-right: 4px;
}

.linkcentral-cache-notice {
    margin: 0;
    font-size: 11px;
    color: #6c757d;
}

.linkcentral-cache-notice em {
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .linkcentral-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .linkcentral-stat-row {
        justify-content: space-around;
        padding: 0 10px;
    }
    
    .linkcentral-stat-number {
        font-size: 18px;
    }
    
    .linkcentral-stat-label {
        font-size: 10px;
    }
    
    .linkcentral-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    
    .linkcentral-link-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .linkcentral-link-stats {
        align-items: flex-start;
    }

    .linkcentral-widget-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .linkcentral-footer-buttons {
        justify-content: center;
    }

    .linkcentral-cache-notice {
        text-align: center;
        font-size: 10px;
    }
}
