/* Estilos para el Acortador de URLs - Frontend */

.url-shortener-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.url-shortener-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.url-shortener-form h2 {
    color: white;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2em;
}

.url-shortener-form .subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="url"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.form-group input[type="url"]:focus,
.form-group input[type="text"]:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.custom-url-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.domain-prefix {
    color: white;
    font-weight: 600;
    white-space: nowrap;
    padding: 0 10px;
}

.custom-url-section input {
    flex: 1;
    margin: 0;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.url-result {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.url-result h3 {
    color: white;
    margin-bottom: 10px;
}

.short-url-display {
    display: flex;
    gap: 10px;
}

.short-url-display input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
}

.btn-copy {
    padding: 12px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Lista de URLs */
.url-list {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.url-list h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.url-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.url-item:hover {
    background: #f0f2f5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.url-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.short-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
}

.short-link:hover {
    text-decoration: underline;
}

.click-badge {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.long-url {
    color: #666;
    font-size: 14px;
    word-break: break-all;
    margin-bottom: 10px;
    padding: 8px;
    background: white;
    border-radius: 5px;
}

.url-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.url-date {
    color: #999;
    font-size: 12px;
}

.url-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-copy-small {
    background: #4CAF50;
    color: white;
}

.btn-copy-small:hover {
    background: #45a049;
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #da190b;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

.loading {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* Notificaciones */
.url-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #4CAF50;
    color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease;
    z-index: 9999;
    max-width: 300px;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
    }
    to {
        transform: translateX(0);
    }
}

.url-notification.error {
    background: #f44336;
}

.url-notification.warning {
    background: #ff9800;
}

/* Responsive */
@media (max-width: 768px) {
    .url-shortener-container {
        padding: 10px;
    }
    
    .url-shortener-form {
        padding: 20px;
    }
    
    .url-shortener-form h2 {
        font-size: 1.5em;
    }
    
    .short-url-display {
        flex-direction: column;
    }
    
    .btn-copy {
        width: 100%;
    }
    
    .url-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .click-badge {
        margin-top: 5px;
    }
    
    .url-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Estilos para el panel de administración */
.wrap .stats-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-box h3 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
}

.wp-list-table a {
    color: #667eea;
    text-decoration: none;
}

.wp-list-table a:hover {
    text-decoration: underline;
}